From 6e0434c5c8db867c81f4cca32fce9f52426fb548 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Tue, 19 Nov 2024 08:56:07 +0300 Subject: [PATCH] import '\t' to editor as 4 spaces --- res/layouts/console.xml.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/layouts/console.xml.lua b/res/layouts/console.xml.lua index 2957c187..679645b7 100644 --- a/res/layouts/console.xml.lua +++ b/res/layouts/console.xml.lua @@ -63,7 +63,7 @@ events.on("core:open_traceback", function(traceback_b64) if file.exists(frame.source) then callback = string.format( "local editor = document.editor ".. - "local source = file.read('%s') ".. + "local source = file.read('%s'):gsub('\t', ' ') ".. "editor.text = source ".. "editor.focused = true ".. "time.post_runnable(function()"..