fixed double % signs in nested modular descriptions

fixes #981
This commit is contained in:
Wofsauge committed 2026-07-22 21:38:52 +02:00
1 parent 93d9d17648
commit 4075bea241
1 file changed
+3
+3
View File
@@ -410,6 +410,9 @@ function EID:ApplyModularNestedDescription(itemDataTableEntry, description, modu
-- Try replace inline variable
local numReplaced = 0
description, numReplaced = description:gsub("{VAR:"..string.upper(moduleName).."}", textFragment)
-- Un-Escape % signs in text, to prevent pattern-matching errors
description = description:gsub("%%%%", "%%")
if numReplaced == 0 then
return EID:AddModularTextLineToDescription(description, textFragment, indent)
end