mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Extend workaround for textboxes to also apply to bookmarks/hyperlinks
This commit is contained in:
parent
a33aa68f60
commit
67664e7956
@ -382,7 +382,9 @@ class Convert(object):
|
||||
return x
|
||||
|
||||
for x in descendants(p, 'w:r', 'w:bookmarkStart', 'w:hyperlink'):
|
||||
if x.tag.endswith('}r') and p_parent(x) is p:
|
||||
if p_parent(x) is not p:
|
||||
continue
|
||||
if x.tag.endswith('}r'):
|
||||
span = self.convert_run(x)
|
||||
if current_anchor is not None:
|
||||
(dest if len(dest) == 0 else span).set('id', current_anchor)
|
||||
|
Loading…
x
Reference in New Issue
Block a user