mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-26 20:14:47 +00:00
fix: extraneous empty paragraphs for test files
Signed-off-by: Michael Krissgau <michael.krissgau@ibm.com>
This commit is contained in:
parent
52b8b9163f
commit
a866392158
@ -257,7 +257,7 @@ class MsWordDocumentBackend(DeclarativeDocumentBackend):
|
|||||||
# Check for Text after the Image
|
# Check for Text after the Image
|
||||||
if (
|
if (
|
||||||
tag_name in ["p"]
|
tag_name in ["p"]
|
||||||
or element.find(".//w:p", namespaces=namespaces) is not None
|
and element.find(".//w:t", namespaces=namespaces) is not None
|
||||||
):
|
):
|
||||||
self._handle_text_elements(element, docx_obj, doc)
|
self._handle_text_elements(element, docx_obj, doc)
|
||||||
# Check for the sdt containers, like table of contents
|
# Check for the sdt containers, like table of contents
|
||||||
|
Loading…
Reference in New Issue
Block a user