Skip to content

textwrap.dedent() fails when largest common whitespace is a substring of smallest leading whitespace #66026

@robertjli

Description

@robertjli
mannequin
BPO 21827
Nosy @rhettinger, @pitrou, @ezio-melotti, @bitdancer, @zware, @serhiy-storchaka, @jayvdb, @ilevkivskyi
Files
  • cb18733ce8f1.diff
  • 34e88a05562f.diff
  • issue21827.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/serhiy-storchaka'
    closed_at = <Date 2015-10-28.19:50:48.557>
    created_at = <Date 2014-06-22.16:44:47.794>
    labels = ['easy', 'type-bug', 'library']
    title = 'textwrap.dedent() fails when largest common whitespace is a substring of smallest leading whitespace'
    updated_at = <Date 2015-10-28.19:50:48.555>
    user = 'https://bugs.python.org/robertjli'

    bugs.python.org fields:

    activity = <Date 2015-10-28.19:50:48.555>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2015-10-28.19:50:48.557>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2014-06-22.16:44:47.794>
    creator = 'robertjli'
    dependencies = []
    files = ['35727', '35731', '40873']
    hgrepos = ['258']
    issue_num = 21827
    keywords = ['patch', 'easy']
    message_count = 16.0
    messages = ['221277', '221281', '221282', '221283', '221287', '221292', '224544', '224547', '253593', '253596', '253600', '253605', '253609', '253612', '253620', '253621']
    nosy_count = 12.0
    nosy_names = ['rhettinger', 'pitrou', 'ezio.melotti', 'r.david.murray', 'python-dev', 'zach.ware', 'serhiy.storchaka', 'puppet', 'robertjli', 'yjchen', 'jayvdb', 'levkivskyi']
    pr_nums = []
    priority = 'high'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue21827'
    versions = ['Python 2.7', 'Python 3.4', 'Python 3.5', 'Python 3.6']

    Metadata

    Metadata

    Labels

    easystdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions