crayons
crayons copied to clipboard
Crayons can't handle padding
Hi,
I recognized that crayons can't deal with string formatted with padding. Examples:
>>> import crayons
>>> print("{:15}".format(crayons.red('NOTE:', bold=True)))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported format string passed to ColoredString.__format__
>>> print("{}".format(crayons.red('NOTE:', bold=True)))
NOTE:
Any ideas? Regards, Thomas