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 larry
Recipients larry
Date 2017-12-21.14:10:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513865443.17.0.213398074469.issue32397@psf.upfronthosting.co.za>
In-reply-to
Content
If you word-wrap a paragraph twice with textwrap, you may get different results.  Specifically, you *will* get different results when:
* the original text has a line that is too long by one character,
* the last word on the line is the first word in a new sentence, and
* there are two spaces after the period.

The first textwrap will replace the two spaces after the period with a newline; the second textwrap will replace the newline with a single space.

Attached is a test case demonstrating the problem.

It's not a big problem, but it did cause an assertion failure in blurb.  The workaround was to word-wrap all paragraphs twice, which works but is kind of dumb.
History
Date User Action Args
2017-12-21 14:10:43larrysetrecipients: + larry
2017-12-21 14:10:43larrysetmessageid: <1513865443.17.0.213398074469.issue32397@psf.upfronthosting.co.za>
2017-12-21 14:10:43larrylinkissue32397 messages
2017-12-21 14:10:43larrycreate