Update fix_whitespace.py to handle newlines correctly

This commit is contained in:
Andrey Lihatskiy
2024-06-10 17:05:19 +03:00
parent 37e4c69119
commit 34dfd7d599
+1 -1
View File
@@ -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):