ID EN
Text Wrapping

replace_whitespace

Python 3.11

(default: True) If true, after tab expansion but before wrapping, the wrap() method will replace each whitespace character with a single space. The whitespace characters replaced are as follows: tab, newline, vertical tab, formfeed, and carriage return ('\t\n\v\f\r').

Syntax

PYTHON
replace_whitespace

See Also

wrap() expand_tabs replace_whitespace replace_whitespace str.splitlines()