EPUB/AZW3 Output: Fix pages that contain only an svg image being regarded as empty and removed during splitting

This commit is contained in:
Kovid Goyal 2013-05-21 12:27:28 +05:30
parent 906b541230
commit d4aad0f2a9

View File

@ -375,6 +375,8 @@ class FlowSplitter(object):
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):