diff options
author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-06-10 17:05:19 +0300 |
---|---|---|
committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-06-10 17:05:19 +0300 |
commit | 34dfd7d5996b1b6117c2155bb95aeb377038bb6e (patch) | |
tree | 8462609dbdf3ee0355641f706d23c1f497722794 | |
parent | 37e4c6911902b9dcec0192e8bb93bbaeacb1d60a (diff) |
Update fix_whitespace.py to handle newlines correctly
-rw-r--r-- | scripts/code_tools/fix_whitespace.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/code_tools/fix_whitespace.py b/scripts/code_tools/fix_whitespace.py index 91e82f26f4..7a88265479 100644 --- a/scripts/code_tools/fix_whitespace.py +++ b/scripts/code_tools/fix_whitespace.py @@ -55,7 +55,7 @@ def convert_tabs_to_spaces(file_path, tab_stop): new_lines.append(new_line + '\n') - with open(file_path, 'w') as file: + with open(file_path, 'w', newline='\n') as file: file.writelines(new_lines) def process_directory(directory, extensions, tab_stop): |