Fix #2632 (again).

This is a better way as it also handles the case of warning directive as
first in item of a labeled list.
This commit is contained in:
jfbu
2016-06-08 11:10:19 +02:00
parent 951e258fe9
commit e3232958e0

View File

@@ -536,9 +536,13 @@
\ifSphinx@inframed
\noindent\begin{minipage}{\linewidth}
\else
\vspace{\parskip}
% handle case where notice is first thing in a list item (or is quoted)
\if@inlabel
\noindent\par\vspace{-\baselineskip}
\else
\vspace{\parskip}
\fi
\fi
\global\@newlistfalse
\MakeFramed {\Sphinx@inframedtrue
\advance\hsize-\width \@totalleftmargin\z@ \linewidth\hsize
% minipage initialization copied from LaTeX source code.