From 9a2bf336f7c242e9644b9e87da541fc62fc2f0bf Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 9 Mar 2009 14:58:25 +0100 Subject: [PATCH] Properly escape ``|`` in LaTeX output. --- CHANGES | 2 ++ sphinx/util/texescape.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 407455d3f..a48859863 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,8 @@ 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'),