aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-10 14:53:38 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-09-10 14:53:38 +0300
commit13eec4f3d4081fdc43883c5ef02e471a2b6c7212 (patch)
tree6c83a929befc5d8b1f18e5ba58786e3d7bd46104 /modules
parent4d2c0c7a72dcb4bb5714cd4f784a7058f7dee6ed (diff)
changed <p> to <br> in info field to prevent double line breaks when copying
added new features to the list.
Diffstat (limited to 'modules')
-rw-r--r--modules/ui.py2
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