Commits

Georg Brandl committed d97b614

sphinx-domains #1: better handling of skips for list environment.

Comments (0)

Files changed (1)

sphinx/texinputs/sphinx.sty

   \noindent\hspace*{\@totalleftmargin}%
   \fcolorbox{VerbatimBorderColor}{VerbatimColor}{%
   \begin{minipage}{\distancetoright}%
-    \smallskip%
     \noindent\hspace*{-\leftsidespace}%
     #1
   \end{minipage}%
 \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{}{%
     \endOriginalVerbatim%
   \endMakeFramed%
   \endlist%
+  % close group to restore \parskip
+  \egroup%
 }