mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-05 03:32:37 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user