Use our text tool to get rid of all the lines in a text that only consist of whitespace (spaces or tabs). You can also enable trim to delete trailing and leading spaces.
Example using the Remove Empty Lines Tool
After getting rid of all whitespace lines