mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
MOBI Output: Fix regression that breaks conversion of some documents
Fixes #1188635 [Mobi conversion crashed](https://bugs.launchpad.net/calibre/+bug/1188635)
This commit is contained in:
parent
9e105ec028
commit
f5c9ad8661
@ -489,7 +489,7 @@ class MobiMLizer(object):
|
||||
if elem.text:
|
||||
if istate.preserve:
|
||||
text = elem.text
|
||||
elif (len(elem) > 0 and isspace(elem.text) and elem[0].tag and
|
||||
elif (len(elem) > 0 and isspace(elem.text) and hasattr(elem[0].tag, 'rpartition') and
|
||||
elem[0].tag.rpartition('}')[-1] not in INLINE_TAGS):
|
||||
text = None
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user