summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-09-05 21:45:11 (GMT)
committerFred Drake <fdrake@acm.org>2000-09-05 21:45:11 (GMT)
commit239e1d5e505eff2fc41bcb294b6c0ce3c8b80312 (patch)
treeb61eb435c33edb06cf56c447070efc9aea29863e /Doc
parent4f643ba5dbb3ff7e36ac1864f49c0778dc0f303d (diff)
downloadcpython-239e1d5e505eff2fc41bcb294b6c0ce3c8b80312.zip
cpython-239e1d5e505eff2fc41bcb294b6c0ce3c8b80312.tar.gz
cpython-239e1d5e505eff2fc41bcb294b6c0ce3c8b80312.tar.bz2
Fix mkhowto so that the bookmarks for the PDF work for both "howto" and
"manual" class documents.
Diffstat (limited to 'Doc')
-rwxr-xr-xDoc/tools/mkhowto6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/tools/mkhowto b/Doc/tools/mkhowto
index 9a8a0b8..de59602 100755
--- a/Doc/tools/mkhowto
+++ b/Doc/tools/mkhowto
@@ -300,7 +300,11 @@ class Job:
#
if os.path.isfile(self.doc + ".toc") and binary == PDFLATEX_BINARY:
import toc2bkm
- toc2bkm.process(self.doc + ".toc", self.doc + ".bkm", "section")
+ if self.doctype == "manual":
+ bigpart = "chapter"
+ else:
+ bigpart = "section"
+ toc2bkm.process(self.doc + ".toc", self.doc + ".bkm", bigpart)
if self.use_bibtex:
self.run("%s %s" % (BIBTEX_BINARY, self.doc))
self.run("%s %s" % (binary, self.doc))