termpixels icon indicating copy to clipboard operation
termpixels copied to clipboard

wrap_text() is bad

Open loganzartman opened this issue 4 years ago • 0 comments

wrap_text() is not only broken in some cases, but it assumes by default that all unicode spaces, and only unicode spaces, are word wrap break points. This is simply not true for all scripts, including some East Asian scripts which are otherwise supported.

Consider removing and recommending usage of textwrap module or uniseg package depending on user requirements.

loganzartman avatar Mar 30 '20 20:03 loganzartman