diff options
author | Fred Drake <fdrake@acm.org> | 1998-04-15 17:50:22 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-04-15 17:50:22 (GMT) |
commit | bf88c3830e3a7d31022039fa265896aec90db61e (patch) | |
tree | f496b704a30d948b18c66713054858552751415b /Doc/tools | |
parent | a2c2a836d7b82bc12f47b8af66ed70d202a34cf2 (diff) | |
download | cpython-bf88c3830e3a7d31022039fa265896aec90db61e.zip cpython-bf88c3830e3a7d31022039fa265896aec90db61e.tar.gz cpython-bf88c3830e3a7d31022039fa265896aec90db61e.tar.bz2 |
Fix the broken PDF links, really this time!
Appending a junk char to the end doesn't quite do it, or doesn't seem to at
any rate. Instead, pad the page numbers to always be 3 charaters wide, with
leading zeros.
Diffstat (limited to 'Doc/tools')
-rwxr-xr-x | Doc/tools/toc2bkm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tools/toc2bkm.py b/Doc/tools/toc2bkm.py index 0d22fb1..ed78f36 100755 --- a/Doc/tools/toc2bkm.py +++ b/Doc/tools/toc2bkm.py @@ -101,7 +101,7 @@ def write_toc(toc, fp): def write_toc_entry(entry, fp, layer): stype, snum, title, pageno, toc = entry - s = "\\pdfoutline goto name{page.%dx}" % pageno + s = "\\pdfoutline goto name{page%03d}" % pageno if toc: s = "%s count -%d" % (s, len(toc)) if snum: |