diff --git a/res/scripts/stdlib.lua b/res/scripts/stdlib.lua index af035d36..ce7f5b48 100644 --- a/res/scripts/stdlib.lua +++ b/res/scripts/stdlib.lua @@ -195,7 +195,7 @@ function gui.template(name, params) text = text:gsub("if%s*=%s*\"%%{%w+}\"", "if=\"\"") -- remove unsolved properties: attr='%{var}' text = text:gsub("%w+%s*=%s*'%%{%w+}'%s?", "") - text = text:gsub('%s*%S+="%%{[^}]+}"%s*', " ")) + text = text:gsub('%s*%S+="%%{[^}]+}"%s*', " ") return text end