mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:04:12 +02: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
1 changed files with 1 additions and 1 deletions
|
|
@ -532,7 +532,7 @@ def mobimlize_elem(self, elem, stylizer, bstate, istates,
|
|||
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…
Reference in a new issue