Closed wkentaro closed 9 years ago
This is related to https://github.com/kennethreitz/legit/issues/168
# test_formatter.py from clint.textui import colored from clint.textui import columns print(columns(['git branches', 20])) print(columns([colored.yellow('git branches'), 20]))
$ python test_formatter.py git branches git branches
This behavior is unexpected, because len('git branches') is only 12.
len('git branches')
12
So it should be
This seems to be caused by colored string, and with https://github.com/kennethreitz/clint/pull/147, the output will be
$ python ~/test_formatter.py git branches git branches
Thanks for the PR!
This is related to https://github.com/kennethreitz/legit/issues/168
This behavior is unexpected, because
len('git branches')
is only12
.So it should be