Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

fix: simplify return statement in DocxConverter class

myhloli6444fb10310b
diff --git a/mineru/model/docx/docx_converter.py b/mineru/model/docx/docx_converter.py
index 5cfc41b9..18190b3b 100644
--- a/mineru/model/docx/docx_converter.py
+++ b/mineru/model/docx/docx_converter.py
@@ -2034,9 +2034,9 @@ class DocxConverter:
for instr in instr_texts:
if instr.text and "SEQ" in instr.text:
return True
- else:
- return False
+ return False
+
def _handle_drawingml(self, elements: list[BaseOxmlElement]):
"""
处理 DrawingML 元素,目前先处理 chart 元素。