Skip to content

An infinite loop in _CustomTextWrap on wide characters with width=1 #399

Description

@astanin

Repro example

>>> import tabulate
>>> data = "\ud55c\uae00"  # 한글 -- each char is 2 display cols wide
>>> tabulate._CustomTextWrap(width=1).wrap(data) # infinite loop
Traceback (most recent call last):
  File "<python-input-17>", line 1, in <module>
    tabulate._CustomTextWrap(width=1).wrap(data) # infinite loop
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^

Related: pull request #391

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