mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-11-02 13:12:50 +00:00
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:
1 parent
dea8140db2
commit
75c15eeecc
1 file changed
+2
-2
+2
-2
@@ -71,7 +71,7 @@ def _extract_pypdf(pdf_path):
|
||||
|
||||
def _extract_pdftotext(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).
|
||||
pages = parse_page_count(run_tool(["pdfinfo", str(pdf_path)]))
|
||||
return text, pages
|
||||
@@ -172,4 +172,4 @@ def main(argv=None):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
sys.exit(main())
|
||||
Reference in new issue
Block a user