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 ANSI and 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.
changed the title [-]Make `TextWrapper` ANSI-aware[/-][+]Add `text_len` to `TextWrapper`, use case: ANSI-awareness and variable character widths[/+]on Jul 25, 2026
changed the title [-]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[/+]on Jul 25, 2026
changed the title [-]Add `text_len` to `TextWrapper` for ANSI and variable character widths awareness[/-][+]Add `text_len` to `TextWrapper` for ANSI and variable character width awareness[/+]on Jul 25, 2026
Activity
[-]Make `TextWrapper` ANSI-aware[/-][+]Add `text_len` to `TextWrapper`, use case: ANSI-awareness and variable character widths[/+][-]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[/+][-]Add `text_len` to `TextWrapper` for ANSI and variable character widths awareness[/-][+]Add `text_len` to `TextWrapper` for ANSI and variable character width 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)