summaryrefslogtreecommitdiff
path: root/sphinx/texinputs
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-01-06 18:41:44 +0100
committerGeorg Brandl <georg@python.org>2011-01-06 18:41:44 +0100
commit6965be81090c6e7bb46b950352f1ef5149a69bef (patch)
tree7a35ae0acf2a3bd8a0ac852804e2ba75a8570662 /sphinx/texinputs
parent2e4a937179506fff82c17a97d81c353ae5b51c94 (diff)
downloadsphinx-6965be81090c6e7bb46b950352f1ef5149a69bef.tar.gz
Remove odd margin calculation in verbatim command that leads to overfull hbox warnings and inconsistent indentation of literal blocks within lists and quotes.
Diffstat (limited to 'sphinx/texinputs')
-rw-r--r--sphinx/texinputs/sphinx.sty6
1 files changed, 1 insertions, 5 deletions
diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty
index bc8df37b..7d282082 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
+}{}