mirror of
https://github.com/open-webui/open-webui
synced 2025-03-02 18:31:57 +00:00
solves the lack of line breaks in chat download as pdf #8405
This commit is contained in:
parent
1dfb479d36
commit
882d8f4ce1
@ -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