mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-26 20:14:47 +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):
|
if isinstance(c, Hyperlink):
|
||||||
text = c.text
|
text = c.text
|
||||||
hyperlink = Path(c.address)
|
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):
|
elif isinstance(c, Run):
|
||||||
text = c.text
|
text = c.text
|
||||||
hyperlink = None
|
hyperlink = None
|
||||||
|
Loading…
Reference in New Issue
Block a user