Fix bug in ANSIString

This commit is contained in:
Griatch 2020-04-11 20:28:29 +02:00
parent 458df00272
commit 642f17be68
6 changed files with 32 additions and 45 deletions

View file

@ -153,7 +153,6 @@ def crop(text, width=None, suffix="[...]"):
if ltext <= width:
return text
else:
from evennia import set_trace;set_trace()
lsuffix = len(suffix)
text = text[:width] if lsuffix >= width else "%s%s" % (text[: width - lsuffix], suffix)
return to_str(text)