You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add text_len to TextWrapper for variable character width awareness #154686
I have already discussed this feature proposal on Discourse
Links to previous discussion of this feature:
This is a direct follow up on #142035 , which introduced a local patch in _split_lines via #154634 to address that bug. A new issue has been requested by a project member to track the generalization of that local patch.
Activity
[-]Make `TextWrapper` ANSI-aware[/-][-]Add `text_len` to `TextWrapper`, use case: ANSI-awareness and variable character widths[/-][-]Add `text_len` to `TextWrapper` for ANSI and variable character widths awareness[/-]pythongh-154686: Add `text_len` to `TextWrapper` (python#152702)
kdeldycke commentedon Jul 25, 2026
@savannahostrowski just created this new issue so we can track the generalization of the patch you introduced in #154634 .
pythongh-154686: Add `text_len` to `TextWrapper` (python#152702)
pythongh-154686: Add `text_len` to `TextWrapper` (python#152702)
pythongh-154686: Add `text_len` to `TextWrapper` (python#152702)
[-]Add `text_len` to `TextWrapper` for ANSI and variable character width awareness[/-]