Update regex (ref: #2382)

This commit is contained in:
Takeshi KOMIYA 2016-05-28 20:08:47 +09:00
parent b74b9cb585
commit f871e4e804

View File

@ -283,7 +283,7 @@ def width_to_latex_length(length_str):
def escape_abbr(text):
"""Adjust spacing after abbreviations."""
return text.replace('.', '.\\@')
return re.sub('\.(?=\s|$)', '.\\@', text)
class LaTeXTranslator(nodes.NodeVisitor):