Fix "console" width on non real terminals (pipe)
Signed-off-by: Jacek Szafarkiewicz <szafar@linux.pl>
This commit is contained in:
parent
dee3952a8c
commit
2beb3ef518
|
@ -205,7 +205,7 @@ class Output(object):
|
|||
full_columns.append(col[-1][0])
|
||||
else:
|
||||
full_columns.append(columns[d] + 1)
|
||||
full_columns[0] += len(indent)
|
||||
full_columns[0] += len(indent) * 2
|
||||
# if possible, try to keep default width (usually 80 columns)
|
||||
default_width = self.term.columns
|
||||
if sum(full_columns) > default_width:
|
||||
|
|
Loading…
Reference in New Issue