mirror of
https://github.com/open-webui/open-webui
synced 2025-03-16 10:28:28 +00:00
fix: solves the lack of line breaks in chat download as pdf #8405
This commit is contained in:
commit
6c4b2b0a8e
@ -53,6 +53,7 @@ class PDFGenerator:
|
|||||||
# - https://facelessuser.github.io/pymdown-extensions/usage_notes/
|
# - https://facelessuser.github.io/pymdown-extensions/usage_notes/
|
||||||
# html_content = markdown(content, extensions=["pymdownx.extra"])
|
# html_content = markdown(content, extensions=["pymdownx.extra"])
|
||||||
|
|
||||||
|
content = content.replace("\n", "<br/>")
|
||||||
html_message = f"""
|
html_message = f"""
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
|
Loading…
Reference in New Issue
Block a user