fix: remove trailing space after color markup in filterColorMarkup function
closes #958
This commit is contained in:
1 parent
ff44af1060
commit
35be00271b
1 file changed
+4
@@ -1488,6 +1488,10 @@ function EID:filterColorMarkup(text, baseKColor)
|
||||
lastColor = lookup
|
||||
lastFunc = colorFunc
|
||||
text = string.gsub(text, word, "", 1)
|
||||
-- If the color markup is at the start of the line and is followed by a space, remove that space to avoid an extra gap at the start of the line
|
||||
if textposition == 1 and string.sub(text, 1, 1) == " " then
|
||||
text = string.sub(text, 2)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user