Skip to content

Commit 4637332

Browse files
committed
Tidy: Fix newlines on Windows
1 parent 1e131fc commit 4637332

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/robot/tidy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def file(self, path, outpath=None):
156156
return writer.getvalue().replace('\r\n', '\n')
157157

158158
def _get_writer(self, outpath):
159-
return file_writer(outpath, usage='Tidy output')
159+
return file_writer(outpath, newline='', usage='Tidy output')
160160

161161
def inplace(self, *paths):
162162
"""Tidy file(s) in-place.

0 commit comments

Comments
 (0)