I have some really bad formatted code with a lot of empty lines. I tried reformat the code but all the empty lines stay. And I do not want to remove them by hand.
So is there a simple way to do this? I tried replacing \n\n with \n, but this does not work. The two new line characters are found, but an 'n' is inserted, which is not really what I need now. I also tried to replace the two ne line characters with a unicode escape character instead, but it did not work.
Is there a way to do this? I wouldn't be surprised.