Remove useless newlines in output.