mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Remove unneeded \bgroup/\egroup in legacy sphinx.sty definition of Verbatim
Indeed, sphinx.sty redefines _environment_ Verbatim, and LaTeX's environments always are scope-limiting for local assignments. modified: sphinx/texinputs/sphinx.sty
This commit is contained in:
parent
afb83c249f
commit
a4aefd454a
@ -247,7 +247,7 @@
|
|||||||
|
|
||||||
\renewcommand{\Verbatim}[1][1]{%
|
\renewcommand{\Verbatim}[1][1]{%
|
||||||
% list starts new par, but we don't want it to be set apart vertically
|
% list starts new par, but we don't want it to be set apart vertically
|
||||||
\bgroup\parskip\z@skip
|
\parskip\z@skip
|
||||||
\smallskip
|
\smallskip
|
||||||
% first, let's check if there is a caption
|
% first, let's check if there is a caption
|
||||||
\ifx\SphinxVerbatimTitle\empty
|
\ifx\SphinxVerbatimTitle\empty
|
||||||
@ -279,8 +279,7 @@
|
|||||||
\endOriginalVerbatim
|
\endOriginalVerbatim
|
||||||
\endMakeFramed
|
\endMakeFramed
|
||||||
\endlist
|
\endlist
|
||||||
% close group to restore \parskip (and \SphinxFrameTitle)
|
% LaTeX environments always revert local changes on exit, here e.g. \parskip
|
||||||
\egroup
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user