Morten Bo Johansen <[EMAIL PROTECTED]> wrote on Mon, 16 Aug 1999:
> Is there any editor (besides emacs, which I don't want to use) that 
> will format quotes, containing longer_than_allowed line lengths, 
> neatly - curtailing the lines to a designated line wrap and inserting 
> missing quote markers.

I don't have a solution for something that works directly in the editor,
but I use a set of small programs to accomplish this with external
filtering.

Since typically an overlong quoted line has an entire paragraph, I just
filter the that line through "qtwrap" to get the desired result
(typing "!!qtwrap" in vi).


qtwrap:
#!/bin/sh
unquote | fmt | quote

quote:
#!/usr/bin/perl -ni.bak
print "> ", $_;

unquote:
#!/usr/bin/perl -ni.bak
s/^>\s?//;
print;


Hope this helped,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
Open your arms to change, but don't let go of your values.

Reply via email to