Skip to content

Crayons can't handle padding #28

@thmsklngr

Description

@thmsklngr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions