From 338e3c8c1c7736a77462bd8c95832655368a2079 Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev Date: Wed, 2 Aug 2017 14:51:10 +0700 Subject: [PATCH] Don't escape slashes in LaTeX gamebookformat is NOT concerned about slashes. Therefore, just don't mess with them. --- quote.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/quote.py b/quote.py index 42ec075..e5e2726 100644 --- a/quote.py +++ b/quote.py @@ -1,8 +1,7 @@ #FIXME entire file is a hack def latex(s): - return (s.replace('\\', '\\textbackslash') - .replace('&', '\&') + return (s.replace('&', '\&') .replace('%', '\%') .replace('$', '\$') .replace('#', '\#')