def read_plain_text(fname, encoding="<STR_LIT:utf-8>"):
with io.open(fname, encoding=encoding) as f:<EOL><INDENT>result = list(f)<EOL><DEDENT>if result:<EOL><INDENT>if result[-<NUM_LIT:1>][-<NUM_LIT:1>:] == "<STR_LIT:\n>":<EOL><INDENT>result.append("<STR_LIT:\n>")<EOL><DEDENT>else:<EOL><INDENT>result[-<NUM_LIT:1>] += "<STR_LIT:\n>"<EOL><DEDENT>return [line[:-<NUM_LIT:1>] for line in result]<EOL><DEDENT>return []<EOL>
Reads a file as a list of strings.