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.