1
0
Fork 0
mirror of https://github.com/Oreolek/gamebookformat.git synced 2024-06-26 03:41:04 +03:00

Whitespace and don't escape curly brackets for TeX

This commit is contained in:
Alexander Yakovlev 2017-08-02 22:13:59 +07:00
parent 338e3c8c1c
commit efc66ff0b0
2 changed files with 1 additions and 3 deletions

View file

@ -127,7 +127,7 @@ def parse_file_to_book(inputfile, output_format_tag, book):
config = line.split('=')
book.configure(config[0].strip(), config[1].strip())
elif name:
text = text + " " + line.strip()
text = text + "\n" + line.strip()
elif len(line.strip()):
raise Exception("unknown content before sections: %s"
% line.strip())

View file

@ -6,8 +6,6 @@ def latex(s):
.replace('$', '\$')
.replace('#', '\#')
.replace('_', '\_')
.replace('{', '\{')
.replace('}', '\}')
.replace('~', '\\textasciitilde')
.replace('^', '\\textasciicircum'))