We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 917366f commit 1b45d22Copy full SHA for 1b45d22
tomlkit/toml_file.py
@@ -37,6 +37,7 @@ def read(self) -> TOMLDocument:
37
num_win_eol = content.count("\r\n")
38
if num_win_eol == num_newline:
39
self._linesep = "\r\n"
40
+ content = content.replace("\r\n", "\n")
41
elif num_win_eol == 0:
42
self._linesep = "\n"
43
else:
0 commit comments