Fix mkhowto so that the bookmarks for the PDF work for both "howto" and
"manual" class documents.
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 @@
#
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))