mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-29 02:53:21 +02: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
1 changed files with 1 additions and 0 deletions
|
|
@ -516,6 +516,7 @@ def resolve_links(self):
|
|||
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…
Reference in a new issue