Unify line endings and insert blank line after closing braces.