From 5022f7139882358cdbb40b2dd6efa1d19554165e Mon Sep 17 00:00:00 2001 From: neru Date: Thu, 8 May 2025 01:30:57 -0300 Subject: [PATCH] fix: prefix whitespace --- lua/CC Tweaked/tutel/tutel-host.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/CC Tweaked/tutel/tutel-host.lua b/lua/CC Tweaked/tutel/tutel-host.lua index 2551540..9a5afe9 100644 --- a/lua/CC Tweaked/tutel/tutel-host.lua +++ b/lua/CC Tweaked/tutel/tutel-host.lua @@ -264,7 +264,7 @@ function drawLogs(x0, y0, x1, y1) local prevColourBg = term.getBackgroundColour() local prevColourFg = term.getTextColour() - local prefix = ("[%s] "):format(entry.type) + local prefix = ("[%s]"):format(entry.type) local prefixLength = #prefix local maxMessageWidth = math.max(1, w - prefixLength) @@ -297,6 +297,7 @@ function drawLogs(x0, y0, x1, y1) term.setBackgroundColor(messageBG) term.setTextColor(messageFG) + term.write(" ") term.write(line) local remaining = w - (prefixLength + #line)