Remove redundant newlines in stdout
This commit is contained in:
parent
999a4c88cc
commit
e201f6cf5f
1 changed files with 2 additions and 3 deletions
|
@ -12,7 +12,6 @@ from pubs import repo
|
||||||
from pubs.utils import resolve_citekey_list
|
from pubs.utils import resolve_citekey_list
|
||||||
from pubs.content import check_file, read_text_file, write_file
|
from pubs.content import check_file, read_text_file, write_file
|
||||||
|
|
||||||
|
|
||||||
class ExtractPlugin(PapersPlugin):
|
class ExtractPlugin(PapersPlugin):
|
||||||
"""Extract annotations from any pdf document.
|
"""Extract annotations from any pdf document.
|
||||||
|
|
||||||
|
@ -207,9 +206,9 @@ class ExtractPlugin(PapersPlugin):
|
||||||
paper = contents[0]
|
paper = contents[0]
|
||||||
annotations = contents[1]
|
annotations = contents[1]
|
||||||
if annotations:
|
if annotations:
|
||||||
output += f"------ {paper.citekey} ------\n\n"
|
output += f"------ {paper.citekey} ------\n"
|
||||||
for annot in annotations:
|
for annot in annotations:
|
||||||
output += f"{annot}\n\n"
|
output += f"{annot}\n"
|
||||||
output += "\n"
|
output += "\n"
|
||||||
print(output)
|
print(output)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue