This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Allow textwrap to preserve leading and trailing whitespace
Type: Stage:
Components: Library (Lib) Versions:
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: gward Nosy List: dwaynebailey, georg.brandl, gward
Priority: normal Keywords: patch

Created on 2006-10-20 07:19 by dwaynebailey, last changed 2022-04-11 14:56 by admin. This issue is now closed.

File name Uploaded Description Edit
textarea-drop_whitespace.diff dwaynebailey, 2006-10-20 07:19 Path for drop_whitespace funtionality
Messages (3)
msg51276 - (view) Author: Dwayne Bailey (dwaynebailey) Date: 2006-10-20 07:19
The attached file add the ability to preserve
whitespace in textwrap.  Usefull where you are using
textwrap in instances where whitespace is significant
(I'm using it to reflow Gettext PO file text).

By default the current behaviour is preserver so the
added option is called drop_whitespace and by default
it is set to True.
msg51277 - (view) Author: Dwayne Bailey (dwaynebailey) Date: 2006-10-20 07:22
Logged In: YES 

Hi Greg, I'm assigning this to you as you seem to be the
original author and suggested that was the best step in this
msg51278 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-03-13 18:16
Added patch, test and doc changes in rev. 54341.
Date User Action Args
2022-04-11 14:56:20adminsetgithub: 44149
2006-10-20 07:19:14dwaynebaileycreate