How to delete empty lines in a file by Emacs? Useful to clean up an HTML page with lot of extra blank lines. #emacs

M-x flush-lines RET ^[[:space:]]*$ RET