From c1824732ee366f88ba72456cef44d28dd8979a18 Mon Sep 17 00:00:00 2001 From: Buurazu Date: Fri, 25 Mar 2022 00:29:07 -0400 Subject: [PATCH] Fix bulletpoints still adding to a string's width --- eid_api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eid_api.lua b/eid_api.lua index 017a9c1c..c9d42b61 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -752,7 +752,7 @@ function EID:replaceAllMarkupWithSpaces(text, checkBulletpoint) if checkBulletpoint then -- Check for the text to just be a bulletpoint icon, which should be considered as zero width -- (fixTextToWidth uses this function one word at a time) - if EID:getIcon(text) ~= EID.InlineIcons["ERROR"] and string.find(text, "{{.-}}")~=nil then + if EID:getIcon(text:gsub(" ", "")) ~= EID.InlineIcons["ERROR"] and string.find(text, "{{.-}}")~=nil then return "" end end