Browse Source

cpp_format_struct_table: Fix newlines on Windows

pull/5670/head
Gleb Mazovetskiy 3 years ago committed by Anders Jenbo
parent
commit
d6409b4490
  1. 2
      tools/cpp_format_struct_table.py

2
tools/cpp_format_struct_table.py

@ -69,7 +69,7 @@ def Process(path: str):
output_line = FormatLine(input[j], state, columns_state)
output_lines.append(output_line)
with open(path, "w", encoding="utf-8") as f:
with open(path, "w", encoding="utf-8", newline='') as f:
f.writelines(f"{line}\r\n" for line in output_lines)

Loading…
Cancel
Save