diff --git a/evennia/utils/text2html.py b/evennia/utils/text2html.py
index ab3f2930d6..1a0b2bf6cc 100644
--- a/evennia/utils/text2html.py
+++ b/evennia/utils/text2html.py
@@ -234,9 +234,9 @@ class TextToHTMLparser(object):
for i, substr in enumerate(str_list):
# reset all current styling
- if substr == ANSI_NORMAL and not clean:
- # replace with close existing tag
- str_list[i] = ""
+ if substr == ANSI_NORMAL:
+ # close any existing span if necessary
+ str_list[i] = "" if not clean else ""
# reset to defaults
classes = []
clean = True