Add option to avoid breaking a single word into a new line #241
Labels
C: stakeholder
Relates to docformatter stakeholder requested behavior
P: enhancement
Feature that is outside the scope of PEP 257
U: low
A relatively low urgency issue
I don't know in which formatter I saw this (might have been ruff but can't find it there anymore), but one of them has this really nice feature that minor max-line-length violations are acceptable, if wrapping would result in ugliness. In particular this means that it will
not auto-wrap a comment if the next line would contain just one word. It would either wrap earlier (to have 2-3 words in the new line) or accept that the line will be slightly longer than the usual maximum.
The text was updated successfully, but these errors were encountered: