Message166627
> 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:39 | chris.jerdonek | set | recipients:
+ chris.jerdonek, gvanrossum, gward, georg.brandl, terry.reedy, mark.dickinson, tlynn, palfrey, jerith, mrabarnett, BreamoreBoy, serhiy.storchaka, otto |
2012-07-28 05:56:39 | chris.jerdonek | set | messageid: <1343454999.2.0.202752102676.issue1859@psf.upfronthosting.co.za> |
2012-07-28 05:56:38 | chris.jerdonek | link | issue1859 messages |
2012-07-28 05:56:38 | chris.jerdonek | create | |
|