mirror of
https://github.com/evennia/evennia.git
synced 2026-03-30 04:27:16 +02:00
Fixed bleed of colour in evtable. Removed some debug outputs.
This commit is contained in:
parent
07978e2145
commit
979c1ab9be
1 changed files with 4 additions and 3 deletions
|
|
@ -232,7 +232,6 @@ class Cell(object):
|
|||
|
||||
def _split_lines(self, text):
|
||||
"Simply split by linebreak"
|
||||
print "split:", text, text.split("\n")
|
||||
return text.split("\n")
|
||||
|
||||
def _fit_width(self, data):
|
||||
|
|
@ -244,8 +243,10 @@ class Cell(object):
|
|||
adjusted_data = []
|
||||
for line in data:
|
||||
if 0 < width < len(line):
|
||||
adjusted_data.extend(_to_ansi(wrap(line, width=width, drop_whitespace=False,
|
||||
replace_whitespace=False, expand_tabs=False))) # fix for ANSIString not supporting expand_tabs/translate
|
||||
# replace_whitespace=False, expand_tabs=False is a
|
||||
# fix for ANSIString not supporting expand_tabs/translate
|
||||
adjusted_data.extend([_to_ansi(part + "{n") for part in wrap(line, width=width, drop_whitespace=False,
|
||||
replace_whitespace=False, expand_tabs=False)])
|
||||
else:
|
||||
adjusted_data.append(line)
|
||||
if self.enforce_size:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue