mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
EPUB Output: When splitting dont consider files with only a single character empty
This commit is contained in:
parent
f4340d2191
commit
95c4381900
@ -297,7 +297,7 @@ class FlowSplitter(object):
|
||||
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…
x
Reference in New Issue
Block a user