Skip to content

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

fix: strip newline characters from paragraph text in office_middle_json_mkcontent

myhloli39b62cc76a81
diff --git a/mineru/backend/office/office_middle_json_mkcontent.py b/mineru/backend/office/office_middle_json_mkcontent.py
index eeb954da..3857655c 100644
--- a/mineru/backend/office/office_middle_json_mkcontent.py
+++ b/mineru/backend/office/office_middle_json_mkcontent.py
@@ -701,7 +701,7 @@ def mk_blocks_to_markdown(para_blocks, make_mode, img_buket_path='', page_idx=No
continue
else:
# page_markdown.append(para_text.strip())
- page_markdown.append(para_text)
+ page_markdown.append(para_text.strip('\r\n'))
return page_markdown