[Zope] wrapping email at 72 characters ?

Jens Vagelpohl jens@zope.com
Thu, 8 Aug 2002 21:53:13 -0400


so you add a check in there to see if it is a single or a multiple newline 
in one place and modify the behavior. no problem.

jens

On Thursday, August 8, 2002, at 05:21 , Paul Winkler wrote:

> On Thu, Aug 08, 2002 at 08:01:15AM -0400, Jens Vagelpohl wrote:
>> code that does the following whould do it:
>>
>> - read 72 characters into the email body
>> - go backwards from there until you encounter an empty space
>> - replace the empty space with a newline character
>> - repeat the preceding steps, starting from the first character after the
>> newline you just inserted.
>>
>> if there is already newlines in the body of text you can replace all of
>> them with empty spaces before you start parsing.
>
> but then you would lose double-newline paragraph boundaries.
>