You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Enforce \n eol for Python writes
• Ensure utf-8 encoding if previously unspecified
This commit is contained in:
@@ -90,6 +90,6 @@ while line != "": # Dump everything until EOF
|
||||
fileread.close()
|
||||
|
||||
# Write
|
||||
filewrite = open(fname.strip(), "w")
|
||||
filewrite = open(fname.strip(), "w", encoding="utf-8", newline="\n")
|
||||
filewrite.write(text)
|
||||
filewrite.close()
|
||||
|
||||
Reference in New Issue
Block a user