-
Notifications
You must be signed in to change notification settings - Fork 125
Open
Description
__________________ [doctest] ftfy.formatting.monospaced_width __________________
043 This can be useful for formatting text that may contain non-spacing
044 characters, or CJK characters that take up two character cells.
045
046 Returns -1 if the string contains a non-printable or control character.
047
048 >>> monospaced_width('ちゃぶ台返し')
049 12
050 >>> len('ちゃぶ台返し')
051 6
052 >>> monospaced_width('owl\N{SOFT HYPHEN}flavored')
Expected:
11
Got:
12
/build/source/ftfy/formatting.py:52: DocTestFailure
Metadata
Metadata
Assignees
Labels
No labels