Show More
@@ -57,7 +57,7 def escape_latex(text): | |||
|
57 | 57 | text : str |
|
58 | 58 | Text containing characters that may conflict with Latex |
|
59 | 59 | """ |
|
60 |
text = ''.join( |
|
|
60 | text = ''.join(LATEX_SUBS.get(c, c) for c in text) | |
|
61 | 61 | for pattern, replacement in LATEX_RE_SUBS: |
|
62 | 62 | text = pattern.sub(replacement, text) |
|
63 | 63 |
General Comments 0
You need to be logged in to leave comments.
Login now