crayons icon indicating copy to clipboard operation
crayons copied to clipboard

Crayons can't handle padding

Open thmsklngr opened this issue 3 years ago • 0 comments

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

thmsklngr avatar Jan 05 '21 13:01 thmsklngr