Commits

Georg Brandl  committed 51533db

Remove odd margin calculation in verbatim command that leads to overfull hbox warnings and inconsistent indentation of literal blocks within lists and quotes.

  • Participants
  • Parent commits 867fc74

Comments (0)

Files changed (1)

File sphinx/texinputs/sphinx.sty

 
 % 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}%
   }%
     \raggedright
   }
   {\endlist}
-}{}
+}{}