Re: repair comb-quoting

"Jim Hill [email protected] [sed-users]" <[email protected]> Fri, 22 Jan 2016 07:16:18 -0800
Newsgroups gmane.editors.sed.user
Message-ID <CAEE75_3-BU6s=L6Cy8CyaQRtOK_8=Bcx60NBBDrcgsC=o49JjA@mail.gmail.com>
On windows atm, gmail's my option, sorry for formatting,

#/usr/bin/sed -Ef
/^> / { N;
/.{70,}/  s/((> )*)([^>\n][^\n]*)\n\1([^> ].{,})$/\1\3 \4/
P;D;
}

works on your sample, which doesn't seem to have actually been wrapped as
the `tw72` in its name implies because some of the apparently desired
output lines are less than that after joining. The constraints are
arbitrary anyway, play with the {,}s to taste, I think the N;munch;P;D
usage is the payload here.


[Non-text portions of this message have been removed]