diff --git a/src/main.py b/src/main.py index 4dff7e7..d8ad7c3 100644 --- a/src/main.py +++ b/src/main.py @@ -67,6 +67,9 @@ def main(): ) pubhtml = web_template.render(name=name, content=rawhtml, download=download_bar) + html_path = destdir / f"{base_name}.html" + with html_path.open(mode="w", encoding="utf-8") as f: + f.write(pubhtml) # process full resume source files filelist = list(srcdir.glob("*.md")) @@ -94,10 +97,6 @@ def main(): ats_pdf_path = destdir / f"{base_name}-ats.pdf" htmltopdf(ats_html, ats_pdf_path) - html_path = destdir / f"{base_name}.html" - with html_path.open(mode="w", encoding="utf-8") as f: - f.write(pubhtml) - print(f"Created: {web_pdf_path.name}") print(f"Created: {ats_pdf_path.name}") print(f"Created: {html_path.name}")