sawyl: (Default)
[personal profile] sawyl
In order to correct a somewhat obscure pet peeve — I hate the way that some mail clients add extra blank citation lines between blocks of text — I've come up with the following particularly unpleasant piece of sed:

s/\(^>\+\) \+$/\1/ /^>\+$/ { h d } /^>\+.\+$/ { H x s/^\n\+//g p s/^.*// h d }

While it appears to work on the relatively few test cases I've tried, I'm pretty sure that there's some unpleasantly wrong with it, something that's only going to become obvious in a couple of months time when I've forgotten how the stupid thing is supposed to do it's magic. Now that I think about it, maybe I don't find those duplicate blank lines all that annoying after all...

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

sawyl: (Default)
sawyl

August 2018

S M T W T F S
   123 4
5 6 7 8910 11
12131415161718
192021222324 25
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 5th, 2026 05:46 pm
Powered by Dreamwidth Studios