mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-09-17 08:36:25 +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:
co-authored by
Claude Fable 5
parent
dea8140db2
commit
75c15eeecc
+2
-2
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user