Merge pull request #8407 from LuisMalhadas/no_line_break_pdf(#8405)

fix: solves the lack of line breaks in chat download as pdf #8405
This commit is contained in:
Timothy Jaeryang Baek 2025-01-08 11:34:32 -08:00 committed by GitHub
commit 6c4b2b0a8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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>