mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
EPUB/AZW3 Output: Fix pages that contain only an svg image being regarded as empty and removed during splitting
This commit is contained in:
parent
906b541230
commit
d4aad0f2a9
@ -375,6 +375,8 @@ class FlowSplitter(object):
|
|||||||
for img in root.xpath('//h:img', namespaces=NAMESPACES):
|
for img in root.xpath('//h:img', namespaces=NAMESPACES):
|
||||||
if img.get('style', '') != 'display:none':
|
if img.get('style', '') != 'display:none':
|
||||||
return False
|
return False
|
||||||
|
if root.xpath('//*[local-name() = "svg"]'):
|
||||||
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def split_text(self, text, root, size):
|
def split_text(self, text, root, size):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user