mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
MOBI Output: Fix some sub/super scripts missing
MOBI Output: Fix conversion of some super/sub scripts failling if they are the first or last element in a paragraph. Fixes #1218858 [Subscripted text is generated by chance (MOBI)](https://bugs.launchpad.net/calibre/+bug/1218858)
This commit is contained in:
parent
e21957872e
commit
54a56df2f2
@ -525,6 +525,8 @@ class MobiMLizer(object):
|
|||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
if vbstate.para is not None:
|
if vbstate.para is not None:
|
||||||
|
if vbstate.para.text:
|
||||||
|
vtag.text = vbstate.para.text
|
||||||
for child in vbstate.para:
|
for child in vbstate.para:
|
||||||
vtag.append(child)
|
vtag.append(child)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user