mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
fix: solves the lack of line breaks in chat download as pdf #8405
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user