mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Merge pull request #2764 from InspectorCaracal/fix-text2html-normal
Fix ANSI_NORMAL override in text2html
This commit is contained in:
commit
b1d611c6ca
1 changed files with 3 additions and 3 deletions
|
|
@ -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] = "</span>"
|
||||
if substr == ANSI_NORMAL:
|
||||
# close any existing span if necessary
|
||||
str_list[i] = "</span>" if not clean else ""
|
||||
# reset to defaults
|
||||
classes = []
|
||||
clean = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue