def clean_docstring(docstring):
docstring = docstring.strip()<EOL>if '<STR_LIT:\n>' in docstring:<EOL><INDENT>if docstring[<NUM_LIT:0>].isspace():<EOL><INDENT>return textwrap.dedent(docstring)<EOL><DEDENT>else:<EOL><INDENT>first, _, rest = docstring.partition('<STR_LIT:\n>')<EOL>return first + '<STR_LIT:\n>' + textwrap.dedent(rest)<EOL><DEDENT><DEDENT>return docstring<EOL>
Dedent docstring, special casing the first line.