mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #2632 (cont.). Allow code-block in warning in quoted block.
Move \@newlistfalse from 18eb553b
to earlier location, else LaTeX's \par
will created obsecure "missing item error" if Verbatim code-block is
enclosed in warning notice, and warning notice is in quote block ...
This commit is contained in:
parent
a266dd3aa9
commit
951e258fe9
@ -538,6 +538,7 @@
|
||||
\else
|
||||
\vspace{\parskip}
|
||||
\fi
|
||||
\global\@newlistfalse
|
||||
\MakeFramed {\Sphinx@inframedtrue
|
||||
\advance\hsize-\width \@totalleftmargin\z@ \linewidth\hsize
|
||||
% minipage initialization copied from LaTeX source code.
|
||||
@ -556,7 +557,7 @@
|
||||
\vskip\skip\@mpfootins\normalcolor\footnoterule\unvbox\@mpfootins
|
||||
\fi
|
||||
\@minipagefalse
|
||||
\global\@newlistfalse\endMakeFramed
|
||||
\endMakeFramed
|
||||
\ifSphinx@inframed\end{minipage}\fi
|
||||
% arrange for similar spacing below frame as for "light" boxes.
|
||||
\vskip .4\baselineskip
|
||||
|
Loading…
Reference in New Issue
Block a user