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:
Kovid Goyal 2011-06-15 10:12:34 -06:00
parent bd72eb2d8d
commit 89865c1311

View File

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