Message308872
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. |
|
Date |
User |
Action |
Args |
2017-12-21 14:10:43 | larry | set | recipients:
+ larry |
2017-12-21 14:10:43 | larry | set | messageid: <1513865443.17.0.213398074469.issue32397@psf.upfronthosting.co.za> |
2017-12-21 14:10:43 | larry | link | issue32397 messages |
2017-12-21 14:10:43 | larry | create | |
|