def _cleandoc(doc):
indent_length = lambda s: len(s) - len(s.lstrip("<STR_LIT:U+0020>"))<EOL>not_empty = lambda s: s != "<STR_LIT>"<EOL>lines = doc.split("<STR_LIT:\n>")<EOL>indent = min(map(indent_length, filter(not_empty, lines)))<EOL>return "<STR_LIT:\n>".join(s[indent:] for s in lines)<EOL>
Remove uniform indents from ``doc`` lines that are not empty

    :returns: Cleaned ``doc``