]> granicus.if.org Git - python/commitdiff
Fix mkhowto so that the bookmarks for the PDF work for both "howto" and
authorFred Drake <fdrake@acm.org>
Tue, 5 Sep 2000 21:45:11 +0000 (21:45 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 5 Sep 2000 21:45:11 +0000 (21:45 +0000)
"manual" class documents.

Doc/tools/mkhowto

index 9a8a0b8dde308f56e34a4497914d904d1c8842a3..de59602d4cb1d6b86fc5ac249bb1a9302cf3ee08 100755 (executable)
@@ -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))