mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
IGN:MOBI Output: Add an empty <a> element at the start of every article
This commit is contained in:
parent
f81395da37
commit
0d00c900cf
@ -248,6 +248,7 @@ class Serializer(object):
|
||||
self.breaks.append(buffer.tell() - 1)
|
||||
self.id_offsets[item.href] = buffer.tell()
|
||||
for elem in item.data.find(XHTML('body')):
|
||||
buffer.write('<a></a>')
|
||||
self.serialize_elem(elem, item)
|
||||
if self.write_page_breaks_after_item:
|
||||
buffer.write('<mbp:pagebreak/>')
|
||||
|
Loading…
x
Reference in New Issue
Block a user