From 9448d33d75bbd14fbaca8814b721df93e3360957 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 6 Jan 2011 18:41:44 +0100 Subject: [PATCH] Remove odd margin calculation in verbatim command that leads to overfull hbox warnings and inconsistent indentation of literal blocks within lists and quotes. --- sphinx/texinputs/sphinx.sty | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty index bc8df37b8..7d2820822 100644 --- a/sphinx/texinputs/sphinx.sty +++ b/sphinx/texinputs/sphinx.sty @@ -138,15 +138,11 @@ % Play with vspace to be able to keep the indentation. \newlength\distancetoright -\newlength\leftsidespace \def\mycolorbox#1{% - \setlength\leftsidespace{\@totalleftmargin}% \setlength\distancetoright{\linewidth}% \advance\distancetoright -\@totalleftmargin % - \noindent\hspace*{\@totalleftmargin}% \fcolorbox{VerbatimBorderColor}{VerbatimColor}{% \begin{minipage}{\distancetoright}% - \noindent\hspace*{-\leftsidespace}% #1 \end{minipage}% }% @@ -480,4 +476,4 @@ \raggedright } {\endlist} -}{} \ No newline at end of file +}{}