mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 07:13:08 +02:00
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:
parent
d6d47e226f
commit
6528aa6fd1
1 changed files with 6 additions and 0 deletions
|
|
@ -406,6 +406,12 @@ def mobimlize_elem(self, elem, stylizer, bstate, istates,
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue