Fix bulletpoints still adding to a string's width
This commit is contained in:
1 parent
2cbf11520a
commit
c1824732ee
1 file changed
+1
-1
+1
-1
@@ -752,7 +752,7 @@ function EID:replaceAllMarkupWithSpaces(text, checkBulletpoint)
|
|||||||
if checkBulletpoint then
|
if checkBulletpoint then
|
||||||
-- Check for the text to just be a bulletpoint icon, which should be considered as zero width
|
-- 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)
|
-- (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 ""
|
return ""
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user