mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
EPUB Output: Do not strip <object> tags with type application/svg+xml
EPUB Output: Do not strip <object> tags with type application/svg+xml in addition to those that use image/svg+xml. Fixes #1236845 [Conversion - Missing Images](https://bugs.launchpad.net/calibre/+bug/1236845)
This commit is contained in:
parent
f0d65fa0c2
commit
5246859ad0
@ -410,7 +410,7 @@ class EPUBOutput(OutputFormatPlugin):
|
||||
for tag in XPath('//h:embed')(root):
|
||||
tag.getparent().remove(tag)
|
||||
for tag in XPath('//h:object')(root):
|
||||
if tag.get('type', '').lower().strip() in ('image/svg+xml',):
|
||||
if tag.get('type', '').lower().strip() in {'image/svg+xml', 'application/svg+xml'}:
|
||||
continue
|
||||
tag.getparent().remove(tag)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user