mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-25 19:44:34 +00:00
Fixes #1681 on upstream
Signed-off-by: Allen Nikka <allennikka@gmail.com>
This commit is contained in:
parent
1dc63d0aa9
commit
6ef95c4a4e
@ -397,7 +397,11 @@ class MsWordDocumentBackend(DeclarativeDocumentBackend):
|
||||
if isinstance(c, Hyperlink):
|
||||
text = c.text
|
||||
hyperlink = Path(c.address)
|
||||
format = self._get_format_from_run(c.runs[0])
|
||||
format = (
|
||||
self._get_format_from_run(c.runs[0])
|
||||
if c.runs and len(c.runs) > 0
|
||||
else None
|
||||
)
|
||||
elif isinstance(c, Run):
|
||||
text = c.text
|
||||
hyperlink = None
|
||||
|
Loading…
Reference in New Issue
Block a user