summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-04-20 16:55:14 (GMT)
committerFred Drake <fdrake@acm.org>1998-04-20 16:55:14 (GMT)
commit255284b42aa4d70140c0bc899a66b58cfd84031f (patch)
tree37b1b5d963a41f0245952e7a705f8c54e2811ddc
parent42de185a77aa0d9696b765cde1a7c41d64525c9a (diff)
downloadcpython-255284b42aa4d70140c0bc899a66b58cfd84031f.zip
cpython-255284b42aa4d70140c0bc899a66b58cfd84031f.tar.gz
cpython-255284b42aa4d70140c0bc899a66b58cfd84031f.tar.bz2
Fix problem for the Library Reference where high-numbered sections of
high-numbered chapters took too much space for the section number in the table of contents. This makes the section number and title not overlap.
-rw-r--r--Doc/texinputs/manual.cls5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/texinputs/manual.cls b/Doc/texinputs/manual.cls
index d48923e..c529e5b 100644
--- a/Doc/texinputs/manual.cls
+++ b/Doc/texinputs/manual.cls
@@ -122,6 +122,11 @@
\@ifundefined{fancyhf}{}{\pagestyle{normal}}%
\@doing@page@targetstrue%
}
+% This is needed to get the width of the section # area wide enough in the
+% library reference. Doing it here keeps it the same for all the manuals.
+%
+\renewcommand*\l@section{\@dottedtocline{1}{1.5em}{2.6em}}
+\renewcommand*\l@subsection{\@dottedtocline{2}{4.1em}{3.5em}}
% Fix the theindex environment to add an entry to the Table of