Fix bug in ANSIString
This commit is contained in:
parent
458df00272
commit
642f17be68
6 changed files with 32 additions and 45 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue