mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
sphinx-domains #1: better handling of skips for list environment.
This commit is contained in:
@@ -145,7 +145,6 @@
|
||||
\noindent\hspace*{\@totalleftmargin}%
|
||||
\fcolorbox{VerbatimBorderColor}{VerbatimColor}{%
|
||||
\begin{minipage}{\distancetoright}%
|
||||
\smallskip%
|
||||
\noindent\hspace*{-\leftsidespace}%
|
||||
#1
|
||||
\end{minipage}%
|
||||
@@ -154,6 +153,9 @@
|
||||
\def\FrameCommand{\mycolorbox}
|
||||
|
||||
\renewcommand{\Verbatim}[1][1]{%
|
||||
% list starts new par, but we don't want it to be set apart vertically
|
||||
\bgroup\parskip=0pt%
|
||||
\smallskip%
|
||||
% The list environement is needed to control perfectly the vertical
|
||||
% space.
|
||||
\list{}{%
|
||||
@@ -171,6 +173,8 @@
|
||||
\endOriginalVerbatim%
|
||||
\endMakeFramed%
|
||||
\endlist%
|
||||
% close group to restore \parskip
|
||||
\egroup%
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user