From 199f2cdc9dd9e374f4950d914e1245bfeb7dea7e Mon Sep 17 00:00:00 2001 From: Mario Steele Date: Mon, 2 Mar 2026 02:18:06 -0600 Subject: [PATCH] Updated ScriptEditor Ensure that when we fetch the source code from the editor, we replace any tab characters with 4 spaces. --- UI/Controls/script_editor.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/Controls/script_editor.gd b/UI/Controls/script_editor.gd index 69f11c13..0eed4610 100644 --- a/UI/Controls/script_editor.gd +++ b/UI/Controls/script_editor.gd @@ -11,7 +11,7 @@ func _ready() -> void: func _handle_run_script() -> void: var script = GDScript.new() - script.source_code = %CodeEditor.text + script.source_code = %CodeEditor.text.replace("\t"," ") var error := script.reload() if error != OK: print("Failed to parse script!")