mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
unkepubify: Remove kobo-style comments
This commit is contained in:
parent
9199cb6905
commit
91731ab5b8
@ -115,6 +115,9 @@ def remove_kobo_styles_and_scripts(root):
|
||||
for script in XPath('//h:script')(root):
|
||||
if script.get('type') == 'text/javascript' and is_href_to_fname(script.get('src'), KOBO_JS_NAME):
|
||||
extract(script)
|
||||
for comment in root.iter(tag=etree.Comment):
|
||||
if comment.text == ' kobo-style ': # these are present in KEPUB from Kobo
|
||||
extract(comment)
|
||||
|
||||
|
||||
def wrap_body_contents(body):
|
||||
|
Loading…
x
Reference in New Issue
Block a user