def sanitize_line(txt: str) -> str:
for key in LINE_FIXES:<EOL><INDENT>index = txt.find(key)<EOL>if index > -<NUM_LIT:1>:<EOL><INDENT>txt = txt[:index] + LINE_FIXES[key] + txt[index + len(key):]<EOL><DEDENT><DEDENT>for item in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>if item in txt and item + '<STR_LIT:U+0020>' not in txt:<EOL><INDENT>index = txt.find(item) + len(item)<EOL>txt = txt[:index] + '<STR_LIT:U+0020>' + txt[index:]<EOL><DEDENT><DEDENT>return txt<EOL>
Fixes common mistakes with 'new line' signifiers so that they can be recognized