mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Change the form of the name given to each page of the PDF from "page.%d" to
"page.%dx"; this works around an acroread bug that causes targets not to be recognized if their name is a prefix of another target in the file.
This commit is contained in:
parent
d671e8fb87
commit
a88d681255
2 changed files with 2 additions and 2 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.%d}" % pageno
|
||||
s = "\\pdfoutline goto name{page.%dx}" % pageno
|
||||
if toc:
|
||||
s = "%s count -%d" % (s, len(toc))
|
||||
if snum:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue