|
@@ -34,7 +34,7 @@ class TestCli:
|
|
|
pipe.pipe_parse()
|
|
pipe.pipe_parse()
|
|
|
md_content = pipe.pipe_mk_markdown(image_dir, drop_mode="none")
|
|
md_content = pipe.pipe_mk_markdown(image_dir, drop_mode="none")
|
|
|
res_path = os.path.join(pdf_dev_path, "mineru", f"{demo_name}.md")
|
|
res_path = os.path.join(pdf_dev_path, "mineru", f"{demo_name}.md")
|
|
|
- with open(res_path, "w", encoding="utf-8") as f:
|
|
|
|
|
|
|
+ with open(res_path, "w+", encoding="utf-8") as f:
|
|
|
f.write(md_content)
|
|
f.write(md_content)
|
|
|
|
|
|
|
|
|
|
|