changed <p> to <br> in info field to prevent double line breaks when copying

added new features to the list.
This commit is contained in:
AUTOMATIC
2022-09-10 14:53:38 +03:00
parent 4d2c0c7a72
commit 13eec4f3d4
2 changed files with 4 additions and 1 deletions

View File

@@ -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