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