From e201f6cf5f05ad73ca247cd521dce0ca6630e26d Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 24 Dec 2022 13:41:12 +0100 Subject: [PATCH] Remove redundant newlines in stdout --- extract/extract.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/extract/extract.py b/extract/extract.py index 88b6b8d..1b38ebf 100644 --- a/extract/extract.py +++ b/extract/extract.py @@ -12,7 +12,6 @@ from pubs import repo from pubs.utils import resolve_citekey_list from pubs.content import check_file, read_text_file, write_file - class ExtractPlugin(PapersPlugin): """Extract annotations from any pdf document. @@ -207,9 +206,9 @@ class ExtractPlugin(PapersPlugin): paper = contents[0] annotations = contents[1] if annotations: - output += f"------ {paper.citekey} ------\n\n" + output += f"------ {paper.citekey} ------\n" for annot in annotations: - output += f"{annot}\n\n" + output += f"{annot}\n" output += "\n" print(output)