1
0
Fork 0
mirror of https://github.com/Oreolek/gamebookformat.git synced 2024-05-10 04:58:20 +03:00

Don't escape slashes in LaTeX

gamebookformat is NOT concerned about slashes.

Therefore, just don't mess with them.
This commit is contained in:
Alexander Yakovlev 2017-08-02 14:51:10 +07:00
parent 16369d61a9
commit 338e3c8c1c

View file

@ -1,8 +1,7 @@
#FIXME entire file is a hack
def latex(s):
return (s.replace('\\', '\\textbackslash')
.replace('&', '\&')
return (s.replace('&', '\&')
.replace('%', '\%')
.replace('$', '\$')
.replace('#', '\#')