Improve no colors
This commit is contained in:
parent
3c89b2b662
commit
5f50429a2d
|
@ -181,7 +181,10 @@ class History:
|
||||||
print('-'.center(rows-1, '-'))
|
print('-'.center(rows-1, '-'))
|
||||||
print('|', end='')
|
print('|', end='')
|
||||||
printKey = t[2][0:8] + '\u2026\u2026' + t[2][-3:]
|
printKey = t[2][0:8] + '\u2026\u2026' + t[2][-3:]
|
||||||
print(colored(" {: <18} | {: <14} | {: <7} | {: <7} | {: <30}".format(date, printKey, amount, amountUD, comment), color))
|
if noColors:
|
||||||
|
print(" {: <18} | {: <14} | {: <7} | {: <7} | {: <30}".format(date, printKey, amount, amountUD, comment))
|
||||||
|
else:
|
||||||
|
print(colored(" {: <18} | {: <14} | {: <7} | {: <7} | {: <30}".format(date, printKey, amount, amountUD, comment), color))
|
||||||
print('|', end='')
|
print('|', end='')
|
||||||
print('-'.center(rows-1, '-'))
|
print('-'.center(rows-1, '-'))
|
||||||
print('|', end='')
|
print('|', end='')
|
||||||
|
|
Reference in New Issue