Fix trailing newline and indents