Skip to content

Commit

Permalink
force justify text
Browse files Browse the repository at this point in the history
  • Loading branch information
edulauer committed Jun 24, 2024
1 parent 3830bdd commit 3e01729
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/notification/email_sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,15 @@ def generate_email_content(self) -> str:
item_html = f"""
<p class="secao-marker">{sec_desc}</p>
### [{item['title']}]({item['href']})
<p class='abstract-marker'>{item['abstract']}</p>
<p style='text-align:justify' class='abstract-marker'>{item['abstract']}</p>
<p class='date-marker'>{item['date']}</p>"""
blocks.append(
textwrap.indent(textwrap.dedent(item_html), " " * 4)
)
else:
item_html = f"""
### [{item['title']}]({item['href']})
<p class='abstract-marker'>{item['abstract']}</p><br><br>"""
<p style='text-align:justify' class='abstract-marker'>{item['abstract']}</p><br><br>"""
blocks.append(textwrap.dedent(item_html))

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

0 comments on commit 3e01729

Please sign in to comment.