Skip to content

Commit

Permalink
change fstring
Browse files Browse the repository at this point in the history
  • Loading branch information
edulauer committed Jun 24, 2024
1 parent afae5b6 commit 70671e2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/notification/email_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def generate_email_content(self) -> str:

if not results:
blocks.append(
"Nenhum dos termos pesquisados foi encontrado nesta consulta."
"<p>Nenhum dos termos pesquisados foi encontrado nesta consulta.</p>"
)
else:
if not self.specs.hide_filters:
Expand All @@ -119,8 +119,9 @@ def generate_email_content(self) -> str:
textwrap.indent(textwrap.dedent(item_html), " " * 4)
)
else:
item_html = f"### [{item['title']}]({item['href']})"
item_html += f"<p class='abstract-marker'>{item['abstract']}</p><br><br>"
item_html = f"""
### [{item['title']}]({item['href']})
<p class='abstract-marker'>{item['abstract']}</p><br><br>"""
blocks.append(textwrap.dedent(item_html))

blocks.append("---")
Expand Down

0 comments on commit 70671e2

Please sign in to comment.