◐ Shell
clean mode source ↗

gh-56708: support custom len function in textwrap.wrap by xi · Pull Request #28136 · python/cpython

…ter widths

This also provides a generic solution for bpo-24665

merwok

merwok

@xi

merwok

@merwok merwok changed the title bpo-12499: textwrap.wrap: add control for fonts with different character widths bpo-12499: support custom len function in textwrap.wrap

Sep 4, 2021

@xi

@tiptenbrink

_find_width_index and _handle_long_word change

@hugovk hugovk changed the title bpo-12499: support custom len function in textwrap.wrap gh-56708: support custom len function in textwrap.wrap

Nov 29, 2025

This was referenced

Dec 1, 2025

@serhiy-storchaka

@hugovk hugovk added the pending

The issue will be closed if no feedback is provided

label

Apr 9, 2026