mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
MOBI Output: Fix bug that caused paragraphs that had only a non breaking space as text before the first child element to be removed. Fixes #819058 (EPUB->MOBI conversion omitting some blockquotes)
This commit is contained in:
parent
58bca5f568
commit
e20e8dd0f5
@ -532,7 +532,7 @@ class MobiMLizer(object):
|
||||
bstate.pbreak = True
|
||||
if isblock:
|
||||
para = bstate.para
|
||||
if para is not None and para.text == u'\xa0':
|
||||
if para is not None and para.text == u'\xa0' and len(para) < 1:
|
||||
para.getparent().replace(para, etree.Element(XHTML('br')))
|
||||
bstate.para = None
|
||||
bstate.istate = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user