diff --git a/eid_api.lua b/eid_api.lua index d2d2456f..1ba1e73d 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -983,6 +983,12 @@ end -- returns the string as a table of lines function EID:fitTextToWidth(str, textboxWidth, breakUtf8Chars) local formattedLines = {} + -- Lines with a {{NoLineBreak}} tag should be left in one continuous line + if str:find("{{NoLineBreak}}") then + str = str:gsub("{{NoLineBreak}}","") + table.insert(formattedLines,str) + return formattedLines + end local curLength = 0 local text = {} -- the first word we run into might actually be a bulletpoint icon, which should be zero width