mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 09:35:59 +01:00
IGN:MOBI Output: Add an empty <a> element at the start of every article
This commit is contained in:
parent
f81395da37
commit
0d00c900cf
1 changed files with 1 additions and 0 deletions
|
|
@ -248,6 +248,7 @@ def serialize_item(self, item):
|
|||
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…
Reference in a new issue