diff options
| author | Georg Brandl <georg@python.org> | 2010-04-17 12:50:26 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-04-17 12:50:26 +0200 |
| commit | 83cacb5fe64d70cf5b339e992e0572a47926f3f0 (patch) | |
| tree | 4c43fa0cd72de2382ce5fdc9068c24d915086797 /sphinx/texinputs/sphinx.sty | |
| parent | 22ac79e1af541e66b002ba35f1cd902a91cceb88 (diff) | |
| download | sphinx-83cacb5fe64d70cf5b339e992e0572a47926f3f0.tar.gz | |
#380: use correct command to determine line width when two-column layout is in effect.
Diffstat (limited to 'sphinx/texinputs/sphinx.sty')
| -rw-r--r-- | sphinx/texinputs/sphinx.sty | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty index 52c069f1..f665e0ca 100644 --- a/sphinx/texinputs/sphinx.sty +++ b/sphinx/texinputs/sphinx.sty @@ -140,7 +140,7 @@ \newlength\leftsidespace \def\mycolorbox#1{% \setlength\leftsidespace{\@totalleftmargin}% - \setlength\distancetoright{\textwidth}% + \setlength\distancetoright{\linewidth}% \advance\distancetoright -\@totalleftmargin % \noindent\hspace*{\@totalleftmargin}% \fcolorbox{VerbatimBorderColor}{VerbatimColor}{% @@ -233,7 +233,7 @@ \newcommand{\pysiglinewithargsret}[3]{% \settowidth{\py@argswidth}{#1\code{(}}% \addtolength{\py@argswidth}{-2\py@argswidth}% - \addtolength{\py@argswidth}{\textwidth}% + \addtolength{\py@argswidth}{\linewidth}% \item[#1\code{(}\py@sigparams{#2}{#3}]} % This version is being checked in for the historical record; it shows |
