From 374cded973e99a7db55ad19886a27bfa0d7b92e8 Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Fri, 17 Oct 2025 18:25:20 +0200 Subject: [PATCH] chore: cleanup EID:handleTextIndentation() usage --- main.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.lua b/main.lua index 7b0a0a8a..1ff336c6 100644 --- a/main.lua +++ b/main.lua @@ -774,9 +774,8 @@ function EID:printBulletPoints(description, renderPos, ignoreBPConfig) description = EID:replaceShortMarkupStrings(description) description = EID:replaceMarkupSize(description) for line in string.gmatch(description, "([^#]+)") do - local numIndentations = 0 - line, numIndentations = EID:handleTextIndentation(line) - local formatedLines = EID:fitTextToWidth(line, textboxWidth, EID.BreakUtf8CharsLanguage[EID:getLanguage()]) + local editedLine, numIndentations = EID:handleTextIndentation(line) + local formatedLines = EID:fitTextToWidth(editedLine, textboxWidth, EID.BreakUtf8CharsLanguage[EID:getLanguage()]) local textColor = EID:getTextColor() local indentOffset = textOffset * numIndentations