mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-05 17:36:11 +01:00
rx bf
This commit is contained in:
parent
d9567cc0ca
commit
a96e8b94cf
1 changed files with 1 additions and 0 deletions
|
|
@ -151,6 +151,7 @@ def convert(self, oeb_book, output_path, input_plugin, opts, log):
|
|||
head_content = etree.tostring(head, pretty_print=True, encoding='utf-8')
|
||||
head_content = re.sub(r'\<\/?head.*\>', '', head_content)
|
||||
head_content = re.sub(re.compile(r'\<style.*\/style\>', re.M|re.S), '', head_content)
|
||||
head_content = re.sub(r'<(title)([^>]*)/>', r'<\1\2></\1>', head_content)
|
||||
|
||||
# get & clean HTML <BODY>-data
|
||||
body = root.xpath('//h:body', namespaces={'h': 'http://www.w3.org/1999/xhtml'})[0]
|
||||
|
|
|
|||
Loading…
Reference in a new issue