Skip to content

Commit 27b5239

Browse files
committed
Remove left-over curly brace pairs in LaTeX code in highlighting.py
1 parent 3a7d4a6 commit 27b5239

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

sphinx/highlighting.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,21 @@
7474
% to fix problems for the 5.0.0 inline code highlighting (captions!).
7575
% The \text is from amstext, a dependency of sphinx.sty. It is here only
7676
% to avoid build errors if for some reason expansion is in math mode.
77-
\def\PYGZbs{{\text\textbackslash}}
78-
\def\PYGZus{{\_}}
79-
\def\PYGZob{{\{{}}
80-
\def\PYGZcb{{\}}}}
81-
\def\PYGZca{{\text\textasciicircum}}
82-
\def\PYGZam{{\&}}
83-
\def\PYGZlt{{\text\textless}}
84-
\def\PYGZgt{{\text\textgreater}}
85-
\def\PYGZsh{{\#}}
86-
\def\PYGZpc{{\%}}
87-
\def\PYGZdl{{\$}}
88-
\def\PYGZhy{{\sphinxhyphen}}% defined in sphinxlatexstyletext.sty
89-
\def\PYGZsq{{\text\textquotesingle}}
90-
\def\PYGZdq{{"}}
91-
\def\PYGZti{{\text\textasciitilde}}
77+
\def\PYGZbs{\text\textbackslash}
78+
\def\PYGZus{\_}
79+
\def\PYGZob{\{}
80+
\def\PYGZcb{\}}
81+
\def\PYGZca{\text\textasciicircum}
82+
\def\PYGZam{\&}
83+
\def\PYGZlt{\text\textless}
84+
\def\PYGZgt{\text\textgreater}
85+
\def\PYGZsh{\#}
86+
\def\PYGZpc{\%}
87+
\def\PYGZdl{\$}
88+
\def\PYGZhy{\sphinxhyphen}% defined in sphinxlatexstyletext.sty
89+
\def\PYGZsq{\text\textquotesingle}
90+
\def\PYGZdq{"}
91+
\def\PYGZti{\text\textasciitilde}
9292
\makeatletter
9393
% use \protected to allow syntax highlighting in captions
9494
\def\PYG@#1#2{{\PYG@reset\PYG@toks#1+\relax+{{\PYG@do{{#2}}}}}}

0 commit comments

Comments
 (0)