Format plugin file with black
This commit is contained in:
parent
e1a7d9f613
commit
0634cbb381
1 changed files with 6 additions and 4 deletions
|
@ -250,9 +250,7 @@ class ExtractPlugin(PapersPlugin):
|
||||||
"""
|
"""
|
||||||
output = ""
|
output = ""
|
||||||
for paper in annotated_papers:
|
for paper in annotated_papers:
|
||||||
output += (
|
output += f"\n------ {paper.headline(self.short_header, self.max_authors)} ------\n\n"
|
||||||
f"\n------ {paper.headline(self.short_header, self.max_authors)} ------\n\n"
|
|
||||||
)
|
|
||||||
for annotation in paper.annotations:
|
for annotation in paper.annotations:
|
||||||
output += f"{annotation.format(self.formatting)}\n"
|
output += f"{annotation.format(self.formatting)}\n"
|
||||||
output += "\n"
|
output += "\n"
|
||||||
|
@ -271,7 +269,11 @@ class ExtractPlugin(PapersPlugin):
|
||||||
if check_file(notepath, fail=False):
|
if check_file(notepath, fail=False):
|
||||||
self._append_to_note(notepath, paper)
|
self._append_to_note(notepath, paper)
|
||||||
else:
|
else:
|
||||||
self._write_new_note(notepath, paper, paper.headline(short=True, max_authors=self.max_authors))
|
self._write_new_note(
|
||||||
|
notepath,
|
||||||
|
paper,
|
||||||
|
paper.headline(short=True, max_authors=self.max_authors),
|
||||||
|
)
|
||||||
self.ui.info(f"Wrote annotations to {paper.citekey} note {notepath}.")
|
self.ui.info(f"Wrote annotations to {paper.citekey} note {notepath}.")
|
||||||
|
|
||||||
if edit is True:
|
if edit is True:
|
||||||
|
|
Loading…
Reference in a new issue