mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -406,6 +406,12 @@ class MobiMLizer(object):
|
|||||||
parent = bstate.para if bstate.inline is None else bstate.inline
|
parent = bstate.para if bstate.inline is None else bstate.inline
|
||||||
if parent is not None:
|
if parent is not None:
|
||||||
vtag = etree.SubElement(parent, XHTML(vtag))
|
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:
|
for child in vbstate.para:
|
||||||
vtag.append(child)
|
vtag.append(child)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user