toml-sort
toml-sort copied to clipboard
Newlines are always converted to platform default
Because toml-sort does not explicitly pass a newline parameter to open() in cli.read_file() and cli.write_file(), Python defaults to universal newlines mode.
This means that formatted files always get LF line endings on most operating systems and CRLF line endings on MS Windows. Would it be possible to either keep the original newlines or add an option to force a specific line ending?