mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-22 07:13:08 +02:00
little bf
This commit is contained in:
parent
78b66ad54d
commit
fb1f60cee3
1 changed files with 1 additions and 0 deletions
|
|
@ -154,6 +154,7 @@ def convert(self, oeb_book, output_path, input_plugin, opts, log):
|
|||
body = root.xpath('//h:body', namespaces={'h': 'http://www.w3.org/1999/xhtml'})[0]
|
||||
ebook_content = etree.tostring(body, pretty_print=True, encoding='utf-8')
|
||||
ebook_content = re.sub(r'\<\/?body.*\>', '', ebook_content)
|
||||
ebook_content = re.sub(r'<(div|a|span)([^>]*)/>', r'<\1\2></\1>', ebook_content)
|
||||
|
||||
# generate link to next page
|
||||
if item.spine_position+1 < len(oeb_book.spine):
|
||||
|
|
|
|||
Loading…
Reference in a new issue