[Zope] wrapping email at 72 characters ?

Paul Winkler pw_lists@slinkp.com
Thu, 8 Aug 2002 14:21:46 -0700


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.

--

Paul Winkler
"Welcome to Muppet Labs, where the future is made - today!"