Update fix_whitespace.py to handle newlines correctly
parent
37e4c69119
commit
34dfd7d599
|
|
@ -55,7 +55,7 @@ def convert_tabs_to_spaces(file_path, tab_stop):
|
||||||
|
|
||||||
new_lines.append(new_line + '\n')
|
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)
|
file.writelines(new_lines)
|
||||||
|
|
||||||
def process_directory(directory, extensions, tab_stop):
|
def process_directory(directory, extensions, tab_stop):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue