From d1f487007bf06d85115e1f5361502fac8f7dc4c7 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 4 Aug 2025 15:43:12 +0200 Subject: [PATCH] #7678 --- resources/tools/docling/convert_page.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/tools/docling/convert_page.py b/resources/tools/docling/convert_page.py index 7adbb74..d91230a 100644 --- a/resources/tools/docling/convert_page.py +++ b/resources/tools/docling/convert_page.py @@ -26,8 +26,8 @@ Path(sys.argv[2]+"document.md").write_text(allpages) i=0 for md in allpages.split(""): i+=1 - while os.stat(Path(sys.argv[2] + "/../texts/fh{i}.html")).st_size < 21: - Path(sys.argv[2]+"p{i}.md").write_text("") + while os.stat(Path(sys.argv[2] + "/../texts/fh"+str(i)+".html")).st_size < 21: + Path(sys.argv[2]+"p"+str(i)+".md").write_text("") i+=1 - Path(sys.argv[2]+"p{i}.md").write_text(md) + Path(sys.argv[2]+"p"+str(i)+".md").write_text(md) -- 2.39.5