mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Update regex (ref: #2382)
This commit is contained in:
parent
b74b9cb585
commit
f871e4e804
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user