Add an option for removing empty lines when trimming whitespace. Fixes #158 (again)