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):
|
def _split_lines(self, text):
|
||||||
"Simply split by linebreak"
|
"Simply split by linebreak"
|
||||||
print "split:", text, text.split("\n")
|
|
||||||
return text.split("\n")
|
return text.split("\n")
|
||||||
|
|
||||||
def _fit_width(self, data):
|
def _fit_width(self, data):
|
||||||
|
|
@ -244,8 +243,10 @@ class Cell(object):
|
||||||
adjusted_data = []
|
adjusted_data = []
|
||||||
for line in data:
|
for line in data:
|
||||||
if 0 < width < len(line):
|
if 0 < width < len(line):
|
||||||
adjusted_data.extend(_to_ansi(wrap(line, width=width, drop_whitespace=False,
|
# replace_whitespace=False, expand_tabs=False is a
|
||||||
replace_whitespace=False, expand_tabs=False))) # fix for ANSIString not supporting expand_tabs/translate
|
# 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:
|
else:
|
||||||
adjusted_data.append(line)
|
adjusted_data.append(line)
|
||||||
if self.enforce_size:
|
if self.enforce_size:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue