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.

Author chris.jerdonek
Recipients BreamoreBoy, chris.jerdonek, georg.brandl, gvanrossum, gward, jerith, mark.dickinson, mrabarnett, otto, palfrey, serhiy.storchaka, terry.reedy, tlynn
Date 2012-07-28.05:56:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> def wrap_paragraphs(text, width=70, **kwargs):
>     return [line for para in text.splitlines() for line in textwrap.wrap(para, width, **kwargs)]

I just want to point out that, at least for the purposes of this issue, I don't believe the above is equivalent to what we want.  For example--

>>> wrap_paragraphs('a\n\nb', replace_whitespace=False)
['a', 'b']

With replace_whitespace=False, we want to preserve newline information, which would instead mean a return value of--

['a', '', 'b']
Date User Action Args
2012-07-28 05:56:39chris.jerdoneksetrecipients: + chris.jerdonek, gvanrossum, gward, georg.brandl, terry.reedy, mark.dickinson, tlynn, palfrey, jerith, mrabarnett, BreamoreBoy, serhiy.storchaka, otto
2012-07-28 05:56:39chris.jerdoneksetmessageid: <>
2012-07-28 05:56:38chris.jerdoneklinkissue1859 messages
2012-07-28 05:56:38chris.jerdonekcreate