solves the lack of line breaks in chat download as pdf #8405

This commit is contained in:
Luis Malhadas 2025-01-08 16:49:53 +01:00
parent 1dfb479d36
commit 882d8f4ce1

View File

@ -53,6 +53,7 @@ class PDFGenerator:
# - https://facelessuser.github.io/pymdown-extensions/usage_notes/
# html_content = markdown(content, extensions=["pymdownx.extra"])
content = content.replace("\n", "<br/>")
html_message = f"""
<div>
<div>