diff options
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py index 149c5115..6898f8a8 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -54,7 +54,7 @@ css_hide_progressbar = """ """
def plaintext_to_html(text):
- text = "".join([f"<p>{html.escape(x)}</p>\n" for x in text.split('\n')])
+ text = "<p>" + "<br>\n".join([f"{html.escape(x)}" for x in text.split('\n')]) + "</p>"
return text
|