EPUB Output: Fix splitting of HTML files not updating links in the <pageList> section of the NCX file

This commit is contained in:
Kovid Goyal 2014-01-28 09:51:03 +05:30
parent 9f0e13f60e
commit 21971d0e25

View File

@ -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)