mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-11 10:48:59 +08:00
fix: wrong element object (#9868)
This commit is contained in:
parent
f7aacefcd6
commit
17cacf258e
@ -234,7 +234,7 @@ class WordExtractor(BaseExtractor):
|
|||||||
def parse_paragraph(paragraph):
|
def parse_paragraph(paragraph):
|
||||||
paragraph_content = []
|
paragraph_content = []
|
||||||
for run in paragraph.runs:
|
for run in paragraph.runs:
|
||||||
if hasattr(run.element, "tag") and isinstance(element.tag, str) and run.element.tag.endswith("r"):
|
if hasattr(run.element, "tag") and isinstance(run.element.tag, str) and run.element.tag.endswith("r"):
|
||||||
drawing_elements = run.element.findall(
|
drawing_elements = run.element.findall(
|
||||||
".//{http://schemas.openxmlformats.org/wordprocessingml/2006/main}drawing"
|
".//{http://schemas.openxmlformats.org/wordprocessingml/2006/main}drawing"
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user