]> git.itanic.dy.fi Git - emerge-timer/commit
print_versions(): Pad strings correctly when colors are used
authorEsko Kokkonen <esko.kokkonen@gmail.com>
Sat, 24 Sep 2011 14:36:16 +0000 (17:36 +0300)
committerEsko Kokkonen <esko.kokkonen@gmail.com>
Sat, 24 Sep 2011 14:36:16 +0000 (17:36 +0300)
commit6690d5a86453cd1c5003b46f6c7e355782c89dbf
tree115db72e6a8a22ae82918e7ab4f6088be750600a
parent82d8f4b933a7929b707ce65e50d02ac71df0247f
print_versions(): Pad strings correctly when colors are used

Color characters aren't counted when they appear in the screen, but
len() does count them, so we need a special fix for the padding to
work properly in these cases.
emerge-timer.py