From: Vincent Vanwaelscappel Date: Mon, 4 Aug 2025 13:43:12 +0000 (+0200) Subject: #7678 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d1f487007bf06d85115e1f5361502fac8f7dc4c7;p=cubist_pdf.git #7678 --- 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)