From 951e258fe9341ff33c6369d78d7fdbeee32edcef Mon Sep 17 00:00:00 2001 From: jfbu Date: Wed, 8 Jun 2016 09:04:53 +0200 Subject: [PATCH] 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 ... --- sphinx/texinputs/sphinx.sty | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty index b8176facf..fc3d4558b 100644 --- a/sphinx/texinputs/sphinx.sty +++ b/sphinx/texinputs/sphinx.sty @@ -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