Fix indentation, newline and end and trailing spaces