summaryrefslogtreecommitdiffstats
path: root/platform/SCsub
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-03-09 14:29:24 -0600
committerThaddeus Crews <repiteo@outlook.com>2024-03-09 14:29:24 -0600
commitd9fa40f2df44d775e82332577d44de402b23611f (patch)
treef9f95b4d52fbe79a9cd1ca1b0107b14cb7c9e45b /platform/SCsub
parentf28964805e44a5c068ce8fd9d1e00697fcd922dc (diff)
downloadredot-engine-d9fa40f2df44d775e82332577d44de402b23611f.tar.gz
Enforce `\n` eol for Python writes
• Ensure utf-8 encoding if previously unspecified
Diffstat (limited to 'platform/SCsub')
-rw-r--r--platform/SCsub2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/SCsub b/platform/SCsub
index 5194a19518..e432cebd48 100644
--- a/platform/SCsub
+++ b/platform/SCsub
@@ -19,7 +19,7 @@ reg_apis += "}\n\n"
unreg_apis += "}\n"
# NOTE: It is safe to generate this file here, since this is still execute serially
-with open("register_platform_apis.gen.cpp", "w", encoding="utf-8") as f:
+with open("register_platform_apis.gen.cpp", "w", encoding="utf-8", newline="\n") as f:
f.write(reg_apis_inc)
f.write(reg_apis)
f.write(unreg_apis)