Show More
@@ -20,7 +20,7 b' import re' | |||||
20 | #----------------------------------------------------------------------------- |
|
20 | #----------------------------------------------------------------------------- | |
21 |
|
21 | |||
22 | LATEX_RE_SUBS = ( |
|
22 | LATEX_RE_SUBS = ( | |
23 | (re.compile(r'\.\.\.+'), r'\\ldots'), |
|
23 | (re.compile(r'\.\.\.+'), r'{\\ldots}'), | |
24 | ) |
|
24 | ) | |
25 |
|
25 | |||
26 | # Latex substitutions for escaping latex. |
|
26 | # Latex substitutions for escaping latex. |
@@ -31,7 +31,7 b' class TestLatex(TestsBase):' | |||||
31 | (r'How are \you doing today?', r'How are \textbackslash{}you doing today?'), |
|
31 | (r'How are \you doing today?', r'How are \textbackslash{}you doing today?'), | |
32 | (r'\escapechar=`\A\catcode`\|=0 |string|foo', r'\textbackslash{}escapechar=`\textbackslash{}A\textbackslash{}catcode`\textbackslash{}|=0 |string|foo'), |
|
32 | (r'\escapechar=`\A\catcode`\|=0 |string|foo', r'\textbackslash{}escapechar=`\textbackslash{}A\textbackslash{}catcode`\textbackslash{}|=0 |string|foo'), | |
33 | (r'# $ % & ~ _ ^ \ { }', r'\# \$ \% \& \textasciitilde{} \_ \^{} \textbackslash{} \{ \}'), |
|
33 | (r'# $ % & ~ _ ^ \ { }', r'\# \$ \% \& \textasciitilde{} \_ \^{} \textbackslash{} \{ \}'), | |
34 | ('...', r'\ldots'), |
|
34 | ('...', r'{\ldots}'), | |
35 | ('','')] |
|
35 | ('','')] | |
36 |
|
36 | |||
37 | for test in tests: |
|
37 | for test in tests: |
General Comments 0
You need to be logged in to leave comments.
Login now