From 86d06d7518615dd1dd1cad31c421bc28b997d0e2 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 22 Dec 2022 21:42:56 +0100 Subject: [PATCH] Fix page numbering starting from zero --- extract/extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extract/extract.py b/extract/extract.py index 973d4eb..93eca9b 100644 --- a/extract/extract.py +++ b/extract/extract.py @@ -133,7 +133,7 @@ class ExtractPlugin(PapersPlugin): "\n", "" ) if content: - annotations.append(f"[{page.number}] {content}") + annotations.append(f"[{(page.number or 0) + 1}] {content}") return annotations def _to_stdout(self, annotated_papers):