summaryrefslogtreecommitdiff
path: root/sphinx/texinputs
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-04-17 12:53:04 +0200
committerGeorg Brandl <georg@python.org>2010-04-17 12:53:04 +0200
commit0e39c1bcfc221b73033edd8c7e47b5ba6e028dc0 (patch)
tree4381489bcaa92ccdef3878f702cdbe4ee09763e7 /sphinx/texinputs
parent83cacb5fe64d70cf5b339e992e0572a47926f3f0 (diff)
downloadsphinx-0e39c1bcfc221b73033edd8c7e47b5ba6e028dc0.tar.gz
sphinx-domains #1: better handling of skips for list environment.
Diffstat (limited to 'sphinx/texinputs')
-rw-r--r--sphinx/texinputs/sphinx.sty6
1 files changed, 5 insertions, 1 deletions
diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty
index f665e0ca..7f3fab54 100644
--- a/sphinx/texinputs/sphinx.sty
+++ b/sphinx/texinputs/sphinx.sty
@@ -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%
}