MOBI Output: Fix regression that broke conversion of anchors inside superscripts/subscripts. Fixes #7368 (HTML hyperlinks not found in conversion to mobi)

This commit is contained in:
Kovid Goyal 2010-11-01 20:26:42 -06:00
parent d6d47e226f
commit 6528aa6fd1

View File

@ -406,6 +406,12 @@ class MobiMLizer(object):
parent = bstate.para if bstate.inline is None else bstate.inline
if parent is not None:
vtag = etree.SubElement(parent, XHTML(vtag))
# Add anchors
for child in vbstate.body:
if child is not vbstate.para:
vtag.append(child)
else:
break
for child in vbstate.para:
vtag.append(child)
return