def _clean_code(code):
lines = []<EOL>for l in code.splitlines():<EOL><INDENT>if l.endswith('<STR_LIT:.>'):<EOL><INDENT>l = l[:-<NUM_LIT:1>]<EOL><DEDENT>if "<STR_LIT>" in l:<EOL><INDENT>l = l[:l.find("<STR_LIT>")]<EOL><DEDENT>indent = len(l) - len(l.lstrip())<EOL>tokens = l.split("<STR_LIT:U+0020>")<EOL>while "<STR_LIT>" in tokens:<EOL><INDENT>tokens.remove("<STR_LIT>")<EOL><DEDENT>if tokens and not tokens[-<NUM_LIT:1>].endswith("<STR_LIT:.>"):<EOL><INDENT>tokens[-<NUM_LIT:1>] += "<STR_LIT:.>"<EOL><DEDENT>lines.append("<STR_LIT:U+0020>" * indent + "<STR_LIT:U+0020>".join(tokens))<EOL><DEDENT>return lines<EOL>
Cleans the received code (the parser does not like extra spaces not a VALUE
statement). Returns the cleaned code as a list of lines.

:param code: The COBOL code to clean

:return The list of code lines (cleaned)