Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crayons can't handle padding #28

Open
thmsklngr opened this issue Jan 5, 2021 · 0 comments
Open

Crayons can't handle padding #28

thmsklngr opened this issue Jan 5, 2021 · 0 comments

Comments

@thmsklngr
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant