Remove spurious EOL and EOF whitespace.