mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -467,4 +467,13 @@ class FlowSplitter(object):
|
||||
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…
x
Reference in New Issue
Block a user