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:
Jean-François B
2016-06-08 08:22:52 +02:00

View File

@@ -329,6 +329,8 @@
\discretionary{\copy\Sphinxvisiblespacebox}{\Sphinxafterbreak}
{\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.
\Sphinxbreaksatspecials
% The list environment is needed to control perfectly the vertical space.