Remove endline spaces

It also removes endline spaces in generated files.