mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #2641 from jfbu/latex_fixcodeblockinwarning
Fix #2640: 1.4.2 LaTeX crashes if code-block inside warning directive
This commit is contained in:
@@ -329,6 +329,8 @@
|
|||||||
\discretionary{\copy\Sphinxvisiblespacebox}{\Sphinxafterbreak}
|
\discretionary{\copy\Sphinxvisiblespacebox}{\Sphinxafterbreak}
|
||||||
{\kern\fontdimen2\font}%
|
{\kern\fontdimen2\font}%
|
||||||
}%
|
}%
|
||||||
|
% go around fancyvrb's check of @currenvir (for case of minipage below)
|
||||||
|
\renewcommand*{\VerbatimEnvironment}{\xdef\FV@EnvironName{Verbatim}}%
|
||||||
% Allow breaks at special characters using \PYG... macros.
|
% Allow breaks at special characters using \PYG... macros.
|
||||||
\Sphinxbreaksatspecials
|
\Sphinxbreaksatspecials
|
||||||
% The list environment is needed to control perfectly the vertical space.
|
% The list environment is needed to control perfectly the vertical space.
|
||||||
|
|||||||
Reference in New Issue
Block a user