I'd like to take a buffer which looks like this:
one
two
three
four
five
And turn it into this
one
two
three
four
five
I've tried using delete-blank-line
, however, it will only effect the area around the cursor, and I'd like to do the whole buffer (or at least the whole region). I've also tried various permutation of replace-regexp
but I have not been able to find a regexp that works.