From 35be00271bcb7263ba3e34d9357c4c7b8043b22f Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Fri, 24 Jul 2026 00:48:14 +0200 Subject: [PATCH] fix: remove trailing space after color markup in filterColorMarkup function closes #958 --- features/eid_api.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/features/eid_api.lua b/features/eid_api.lua index 97f3fc67..2a21dbe1 100644 --- a/features/eid_api.lua +++ b/features/eid_api.lua @@ -1488,6 +1488,10 @@ function EID:filterColorMarkup(text, baseKColor) lastColor = lookup lastFunc = colorFunc text = string.gsub(text, word, "", 1) + -- If the color markup is at the start of the line and is followed by a space, remove that space to avoid an extra gap at the start of the line + if textposition == 1 and string.sub(text, 1, 1) == " " then + text = string.sub(text, 2) + end end end