textwrap.TextWrapper.drop_whitespace

drop_whitespace

(default: True) If true, whitespace at the beginning and ending of every line (after wrapping but before indenting) is dropped. Whitespace at the beginning of the paragraph, however, is not dropped if non-whitespace follows it. If whitespace being dropped takes up an entire line, the whole line is dropped.

doc_python
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.