[Patches] [ python-Patches-1581073 ] Allow textwrap to preserve leading and trailing whitespace

SourceForge.net noreply at sourceforge.net
Tue Mar 13 19:16:03 CET 2007


Patches item #1581073, was opened at 2006-10-20 07:19
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1581073&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Dwayne Bailey (dwaynebailey)
Assigned to: Greg Ward (gward)
Summary: Allow textwrap to preserve leading and trailing whitespace

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: Georg Brandl (gbrandl)
Date: 2007-03-13 18:16

Message:
Logged In: YES 
user_id=849994
Originator: NO

Added patch, test and doc changes in rev. 54341.

----------------------------------------------------------------------

Comment By: Dwayne Bailey (dwaynebailey)
Date: 2006-10-20 07:22

Message:
Logged In: YES 
user_id=937299

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
email:

http://mail.python.org/pipermail/python-dev/2005-February/051769.html

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1581073&group_id=5470


More information about the Patches mailing list