Skip to content

Commit

Permalink
adds hrs
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Dec 6, 2023
1 parent 9f3a3fa commit ea5a03f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion thunderbird/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -1199,12 +1199,13 @@ def as_html_section(self, section_name):
# Start building the HTML string
table_sections = ["info", "parts", "headers"]
if section_name in table_sections:
html_parts.append("<hr>")
html_parts.append(f"<table id='{section_name}Table'>")
if section_name == "title":
if self.mailid:
html_parts.append(f"<h2>{self.mailid}</h2>")
elif section_name == "wiki":
html_parts.append(self.asWikiMarkup())
html_parts.append(f"<hr><pre>{self.asWikiMarkup()}</pre>")
elif section_name == "info":
html_parts.append(self.table_line("User", self.user))
html_parts.append(self.table_line("Folder", self.folder_path))
Expand Down

0 comments on commit ea5a03f

Please sign in to comment.