Spaces:
Sleeping
Sleeping
JohnSmith9982
commited on
Commit
•
54f9595
1
Parent(s):
0e9e479
Update overwrites.py
Browse files- overwrites.py +1 -1
overwrites.py
CHANGED
@@ -30,7 +30,7 @@ def postprocess(
|
|
30 |
"""
|
31 |
if y is None or y == []:
|
32 |
return []
|
33 |
-
tag_regex = re.compile(r"
|
34 |
if tag_regex.search(y[-1][1]):
|
35 |
y[-1] = (y[-1][0].replace("\n", "<br>"), y[-1][1])
|
36 |
else:
|
|
|
30 |
"""
|
31 |
if y is None or y == []:
|
32 |
return []
|
33 |
+
tag_regex = re.compile(r"^<\w+>[^<]+</\w+>")
|
34 |
if tag_regex.search(y[-1][1]):
|
35 |
y[-1] = (y[-1][0].replace("\n", "<br>"), y[-1][1])
|
36 |
else:
|