def dedent(text):
if text.startswith('<STR_LIT:\n>'):<EOL><INDENT>return textwrap.dedent(text)<EOL><DEDENT>splits = text.split('<STR_LIT:\n>',<NUM_LIT:1>)<EOL>if len(splits) == <NUM_LIT:1>:<EOL><INDENT>return textwrap.dedent(text)<EOL><DEDENT>first, rest = splits<EOL>rest = textwrap.dedent(rest)<EOL>return '<STR_LIT:\n>'.join([first, rest])<EOL>
Equivalent of textwrap.dedent that ignores unindented first line.

    This means it will still dedent strings like:
    '''foo
    is a bar
    '''

    For use in wrap_paragraphs.