mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
DOCX Input: Fix bug in handling of hyperlink fields containing only a single run of text
This commit is contained in:
parent
3c971aa472
commit
10336f7d2d
@ -516,6 +516,7 @@ class Convert(object):
|
||||
spans = [rmap[r] for r in runs if r in rmap]
|
||||
if not spans:
|
||||
continue
|
||||
span = spans[0]
|
||||
if len(spans) > 1:
|
||||
span = self.wrap_elems(spans, SPAN())
|
||||
span.tag = 'a'
|
||||
|
Loading…
x
Reference in New Issue
Block a user