diff --git a/CHANGES b/CHANGES index 9823bb988..cd0c82fb5 100644 --- a/CHANGES +++ b/CHANGES @@ -194,6 +194,8 @@ New features added Release 0.5.2 (in development) ============================== +* Properly escape ``|`` in LaTeX output. + * #71: If a decoding error occurs in source files, print a warning and replace the characters by "?". diff --git a/sphinx/util/texescape.py b/sphinx/util/texescape.py index 1799b77c6..f495243cb 100644 --- a/sphinx/util/texescape.py +++ b/sphinx/util/texescape.py @@ -40,7 +40,8 @@ tex_replacements = [ (u'─', ur'-'), (u'⎽', ur'\_'), (u'╲', ur'\textbackslash{}'), - (u'│', ur'|'), + (u'|', ur'\textbar{}'), + (u'│', ur'\textbar{}'), (u'ℯ', ur'e'), (u'ⅈ', ur'i'), (u'₁', ur'1'),