Fix bulletpoint icons being on their own line

This commit is contained in:
Buurazu authored and GitHub committed 2022-01-21 00:58:22 -05:00
1 parent 448f4d2233
commit 97eef41a53
1 file changed
+2 -2
+2 -2
View File
@@ -801,8 +801,8 @@ function EID:fitTextToWidth(str, textboxWidth, breakUtf8Chars)
end end
local strFiltered, spriteTable = EID:filterIconMarkup(table.concat(filteredWord), 0, 0) local strFiltered, spriteTable = EID:filterIconMarkup(table.concat(filteredWord), 0, 0)
local wordLength = EID:getStrWidth(strFiltered) local wordLength = EID:getStrWidth(strFiltered)
if curLength + wordLength <= textboxWidth or curLength < 12 then if curLength + wordLength <= textboxWidth or curLength < 17 then
table.insert(text, word) table.insert(text, word)
curLength = curLength + wordLength curLength = curLength + wordLength
else else