So, since I am too stupid to remove empty lines easily, I present to you my overcomplicated solution.
Search for the Find / Replace
in the operations and replace ^(?:[\t ]*(?:\r?\n|\r))+
with nothing.
It uses Perl’s regex to find specific line breaks that indicate an empty line. Regex is still magic to me.