mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
@@ -536,9 +536,13 @@
|
|||||||
\ifSphinx@inframed
|
\ifSphinx@inframed
|
||||||
\noindent\begin{minipage}{\linewidth}
|
\noindent\begin{minipage}{\linewidth}
|
||||||
\else
|
\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
|
\fi
|
||||||
\global\@newlistfalse
|
|
||||||
\MakeFramed {\Sphinx@inframedtrue
|
\MakeFramed {\Sphinx@inframedtrue
|
||||||
\advance\hsize-\width \@totalleftmargin\z@ \linewidth\hsize
|
\advance\hsize-\width \@totalleftmargin\z@ \linewidth\hsize
|
||||||
% minipage initialization copied from LaTeX source code.
|
% minipage initialization copied from LaTeX source code.
|
||||||
|
|||||||
Reference in New Issue
Block a user