Fix page numbering starting from zero

This commit is contained in:
Marty Oehme 2022-12-22 21:42:56 +01:00
parent 9496a626c0
commit 86d06d7518
Signed by: Marty
GPG key ID: 73BA40D5AFAF49C9

View file

@ -133,7 +133,7 @@ class ExtractPlugin(PapersPlugin):
"\n", "" "\n", ""
) )
if content: if content:
annotations.append(f"[{page.number}] {content}") annotations.append(f"[{(page.number or 0) + 1}] {content}")
return annotations return annotations
def _to_stdout(self, annotated_papers): def _to_stdout(self, annotated_papers):