mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 22:14:07 +02:00
MOBI Output: Fix a bug where linking to the very first element in a file could sometimes result in the link pointing to the last element in the previous file. Fixes #797214 (Private bug)
This commit is contained in:
parent
bd72eb2d8d
commit
89865c1311
1 changed files with 1 additions and 0 deletions
|
|
@ -241,6 +241,7 @@ def serialize_item(self, item):
|
|||
if self.write_page_breaks_after_item:
|
||||
buffer.write('<mbp:pagebreak/>')
|
||||
buffer.write('</div>')
|
||||
self.anchor_offset = None
|
||||
|
||||
def serialize_elem(self, elem, item, nsrmap=NSRMAP):
|
||||
buffer = self.buffer
|
||||
|
|
|
|||
Loading…
Reference in a new issue