Remove empty lines

Automatically remove blank lines and lines that contain only whitespace from text.