New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
textwrap has problems wrapping hyphens #37049
Comments
(Greg already knows about this from private mail; Long multi-word command-line options (begin |
Logged In: YES Thanks for the reminder, David! Fixed in Lib/textwrap.py rev 1.14. |
Logged In: YES There's still an edge case that gives poor results. Try A more plausible example is "what the--.". |
Logged In: YES More edge cases came up today. These break at the
All but the last of these breaks are bad. Perhaps TextWrapper should have a |
Logged In: YES Finally! Fixed in rev 1.26 of Lib/textwrap.py, with tests |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: