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
pythongh-154686: Add `text_len` to `TextWrapper` (python#152702)
kdeldycke commented on 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)