PyDocs

Nav

Text Processing Services

TextWrapper.break_on_hyphens

textwrap

attribute of TextWrapper
(default: True) If true, wrapping will occur preferably on whitespaces and right after hyphens in compound words, as it is customary in English. If false, only whitespaces will be considered as potentially good places for line breaks, but you need to set break_long_words to false if you want truly insecable words. Default behaviour in previous versions was to always allow breaking hyphenated words.
0 Examples
No examples for textwrap/TextWrapper.break_on_hyphens.
See Also
No see-alsos for textwrap/TextWrapper.break_on_hyphens
0 Notes
No notes for TextWrapper.break_on_hyphens