mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-29 04:53:33 +02: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
1 changed files with 2 additions and 0 deletions
|
|
@ -375,6 +375,8 @@ def is_page_empty(self, root):
|
|||
for img in root.xpath('//h:img', namespaces=NAMESPACES):
|
||||
if img.get('style', '') != 'display:none':
|
||||
return False
|
||||
if root.xpath('//*[local-name() = "svg"]'):
|
||||
return False
|
||||
return True
|
||||
|
||||
def split_text(self, text, root, size):
|
||||
|
|
|
|||
Loading…
Reference in a new issue