def auto_undent(string):
lines = string.splitlines()<EOL>while lines[<NUM_LIT:0>].strip() == "<STR_LIT>":<EOL><INDENT>lines = lines[<NUM_LIT:1>:]<EOL>if not lines:<EOL><INDENT>return []<EOL><DEDENT><DEDENT>spaces = len(lines[<NUM_LIT:0>]) - len(lines[<NUM_LIT:0>].lstrip("<STR_LIT:U+0020>"))<EOL>out = []<EOL>for line in lines:<EOL><INDENT>num_spaces = len(line) - len(line.lstrip("<STR_LIT:U+0020>"))<EOL>out.append(line[min(spaces, num_spaces) :])<EOL><DEDENT>return out<EOL>
Unindent a docstring.