mirror of
https://github.com/cooperhammond/irs.git
synced 2024-12-22 17:35:28 +00:00
some more done
This commit is contained in:
parent
dffcd76c14
commit
82d86a6465
|
@ -430,8 +430,8 @@ class FancyPrinting:
|
|||
if sum(len(no_colors(s_)) for s_ in s) >= int(COLS * 0.6):
|
||||
allowed_length = int((COLS * 0.6) / len(s))
|
||||
for i, s_ in enumerate(s):
|
||||
# TODO: replace total contents without color with ones with color and `...`
|
||||
|
||||
s[i] = s_.replace(no_colors(s_), no_colors(s_)[allowed_length:] + "...")
|
||||
elif type(s) is str:
|
||||
|
||||
spaces = " " * (20 - len(s))
|
||||
if finished:
|
||||
|
|
Loading…
Reference in a new issue