Skip to content

wcwidth 0.2.14 breaks doctest #226

Description

@dotlambda
__________________ [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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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