Fix bulletpoints still adding to a string's width

This commit is contained in:
Buurazu authored and GitHub committed 2022-03-25 00:29:07 -04:00
1 parent 2cbf11520a
commit c1824732ee
1 file changed
+1 -1
+1 -1
View File
@@ -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