Skip to content

Commit

Permalink
LaTeX fix sphinx-doc#8686: get line number to be printed only once wh…
Browse files Browse the repository at this point in the history
…en wrapping

This maintains existing behavior.
  • Loading branch information
jfbu committed Jun 19, 2022
1 parent 24e2c9d commit 33a6b43
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sphinx/texinputs/sphinxlatexliterals.sty
Expand Up @@ -299,8 +299,13 @@
\FV@ProcessLine{\box\spx@verb@tempboxb\strut}%
\global\let\FV@ProcessLine\FV@ProcessLine
\global\setbox\@tempboxa=\box\@tempboxa
\aftergroup\spx@verb@@InhibitLineNumber
\fi
}%
\def\spx@verb@@InhibitLineNumber{%
\let\FV@LeftListNumber\relax
\let\FV@RightListNumber\relax
}%
% This will replace fancyvrb's \FV@@PreProcessLine
% Instead of boxing \FV@Line (which contains the Pygmentized line tokens), we
% first typeset it in a vertical box of the suitable width (taking into
Expand Down

0 comments on commit 33a6b43

Please sign in to comment.