mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 20:53:42 +02:00
EPUB Output: Fix splitting of HTML files not updating links in the <pageList> section of the NCX file
This commit is contained in:
parent
9f0e13f60e
commit
21971d0e25
1 changed files with 9 additions and 0 deletions
|
|
@ -467,4 +467,13 @@ def fix_toc_entry(toc):
|
|||
if self.oeb.toc:
|
||||
fix_toc_entry(self.oeb.toc)
|
||||
|
||||
if self.oeb.pages:
|
||||
for page in self.oeb.pages:
|
||||
href, frag = urldefrag(page.href)
|
||||
if href == self.item.href:
|
||||
nhref = self.anchor_map[frag if frag else None]
|
||||
if frag:
|
||||
nhref = '#'.join((nhref, frag))
|
||||
page.href = nhref
|
||||
|
||||
self.oeb.manifest.remove(self.item)
|
||||
|
|
|
|||
Loading…
Reference in a new issue