mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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.
This commit is contained in:
parent
a2c2a836d7
commit
bf88c3830e
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue