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 <1343454999.2.0.202752102676.issue1859@psf.upfronthosting.co.za>
In-reply-to
Content
> 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']
History
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: <1343454999.2.0.202752102676.issue1859@psf.upfronthosting.co.za>
2012-07-28 05:56:38chris.jerdoneklinkissue1859 messages
2012-07-28 05:56:38chris.jerdonekcreate