Format plugin file with black

This commit is contained in:
Marty Oehme 2023-01-13 19:06:20 +01:00
parent e1a7d9f613
commit 0634cbb381
Signed by: Marty
GPG key ID: 73BA40D5AFAF49C9

View file

@ -250,9 +250,7 @@ class ExtractPlugin(PapersPlugin):
"""
output = ""
for paper in annotated_papers:
output += (
f"\n------ {paper.headline(self.short_header, self.max_authors)} ------\n\n"
)
output += f"\n------ {paper.headline(self.short_header, self.max_authors)} ------\n\n"
for annotation in paper.annotations:
output += f"{annotation.format(self.formatting)}\n"
output += "\n"
@ -271,7 +269,11 @@ class ExtractPlugin(PapersPlugin):
if check_file(notepath, fail=False):
self._append_to_note(notepath, paper)
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}.")
if edit is True: