Re: Removing line breaks

2002-03-31 Thread dman
On Sun, Mar 31, 2002 at 04:58:31AM -0600, Colin Watson wrote: | On Sat, Mar 30, 2002 at 02:31:06PM -0600, dman wrote: | > #!/usr/bin/env python | > | > import sys | > p = [] | > for line in sys.xreadlines() : | > l = line.strip() # strip all leading and trailing whitespace | > if l : | >

Re: Removing line breaks

2002-03-31 Thread Colin Watson
On Sat, Mar 30, 2002 at 02:31:06PM -0600, dman wrote: > On Sun, Mar 31, 2002 at 02:41:31AM +0800, csj wrote: > | What's the fastest way to reformat a mutt-friendly text file into > | something a WYSIWYG word processor would love? > | > | Let's take this email as an example. When I use the linewrap

Re: Removing line breaks

2002-03-30 Thread dman
On Sun, Mar 31, 2002 at 02:41:31AM +0800, csj wrote: | What's the fastest way to reformat a mutt-friendly text file into | something a WYSIWYG word processor would love? | | Let's take this email as an example. When I use the linewrap command in | Sylpheed, the text of my email is broken into shor

Removing line breaks

2002-03-30 Thread csj
What's the fastest way to reformat a mutt-friendly text file into something a WYSIWYG word processor would love? Let's take this email as an example. When I use the linewrap command in Sylpheed, the text of my email is broken into shorter lines. But when I cut and paste these selfsame lines into A