Fix the python script so it detects \r correctly.

This commit is contained in:
IntegratedQuantum 2024-05-16 21:18:38 +02:00
parent 48bf2a6d0a
commit 1ba81dc62f
22 changed files with 233 additions and 233 deletions

View File

@ -16,7 +16,7 @@ for subdir, dirs, files in os.walk("."):
if filepath.startswith("./zig-cache"): continue
if filepath.endswith(".json") or filepath.endswith(".zig") or filepath.endswith(".py") or filepath.endswith(".zon") or filepath.endswith(".vs") or filepath.endswith(".fs") or filepath.endswith(".glsl"):
with open(filepath, "r") as f:
with open(filepath, "r", newline = '') as f:
string = f.read()
line = 1
lineStart = True