Skip to content

Commit c892fe9

Browse files
committed
Fix space gobbling issue from PR sphinx-doc#4370
This is subtle LaTeX thing. Prior to merge of sphinx-doc#4370 there was a `\texttt` which was hiding the potential problem. The fix is to leave a brace pair in place.
1 parent 5d31fad commit c892fe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx/texinputs/sphinx.sty

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,7 @@
15581558
\let\do@noligs\sphinx@do@noligs
15591559
\@noligs\endlinechar\m@ne\everyeof{}% (<- in case inside \sphinxhref)
15601560
\expandafter\scantokens
1561-
\fi {#1}}}
1561+
\fi {{#1}}}}% extra brace pair to fix end-space gobbling issue...
15621562
\def\sphinx@do@noligs #1{\catcode`#1\active\begingroup\lccode`\~`#1\relax
15631563
\lowercase{\endgroup\def~{\leavevmode\kern\z@\char`#1 }}}
15641564
\def\sphinx@literal@nolig@list {\do\`\do\<\do\>\do\'\do\-}%

0 commit comments

Comments
 (0)