style(verify_pdf): align fallback comment indentation, restore EOF newline (#369 fixup)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Mads Lorentzen
2026-08-26 20:07:39 +02:00
co-authored by Claude Fable 5
parent dea8140db2
commit 75c15eeecc
+2 -2
View File
@@ -71,7 +71,7 @@ def _extract_pypdf(pdf_path):
def _extract_pdftotext(pdf_path): def _extract_pdftotext(pdf_path):
text = run_tool(["pdftotext", "-layout", "-enc", "UTF-8", str(pdf_path), "-"]) text = run_tool(["pdftotext", "-layout", "-enc", "UTF-8", str(pdf_path), "-"])
# Always call pdfinfo here so the fallback path returns a page count # Always call pdfinfo here so the fallback path returns a page count
# even when the caller did not request --pages (same Poppler package). # even when the caller did not request --pages (same Poppler package).
pages = parse_page_count(run_tool(["pdfinfo", str(pdf_path)])) pages = parse_page_count(run_tool(["pdfinfo", str(pdf_path)]))
return text, pages return text, pages
@@ -172,4 +172,4 @@ def main(argv=None):
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(main()) sys.exit(main())