Spaces:
Sleeping
Sleeping
Keldos
commited on
Commit
·
e19e894
1
Parent(s):
78742bf
fix: 使用`<p>`而非`<pre>`处理, fix #374
Browse files- modules/utils.py +1 -1
modules/utils.py
CHANGED
|
@@ -115,7 +115,7 @@ def convert_mdtext(md_text):
|
|
| 115 |
|
| 116 |
|
| 117 |
def convert_asis(userinput):
|
| 118 |
-
return f"<pre>{html.escape(userinput)}</
|
| 119 |
|
| 120 |
def detect_converted_mark(userinput):
|
| 121 |
if userinput.endswith(ALREADY_CONVERTED_MARK):
|
|
|
|
| 115 |
|
| 116 |
|
| 117 |
def convert_asis(userinput):
|
| 118 |
+
return f"<p style=\"white-space:pre-wrap;\">{html.escape(userinput)}</p>"+ALREADY_CONVERTED_MARK
|
| 119 |
|
| 120 |
def detect_converted_mark(userinput):
|
| 121 |
if userinput.endswith(ALREADY_CONVERTED_MARK):
|