mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
EPUB Output: When splitting dont consider files with only a single character empty
This commit is contained in:
parent
f4340d2191
commit
95c4381900
1 changed files with 1 additions and 1 deletions
|
|
@ -297,7 +297,7 @@ def is_page_empty(self, root):
|
|||
return False
|
||||
txt = re.sub(r'\s+|\xa0', '',
|
||||
etree.tostring(body, method='text', encoding='unicode'))
|
||||
if len(txt) > 1:
|
||||
if len(txt):
|
||||
return False
|
||||
for img in root.xpath('//h:img', namespaces=NAMESPACES):
|
||||
if img.get('style', '') != 'display:none':
|
||||
|
|
|
|||
Loading…
Reference in a new issue