fixed last delimiter
This commit is contained in:
parent
9f30e5ee39
commit
6a64dd4909
@ -52,11 +52,9 @@ function generate(_, playerColor)
|
||||
-- construct the string (new line for each instruction)
|
||||
local description = "++SCED import instructions++"
|
||||
for _, entry in ipairs(idList) do
|
||||
description = description .. "\n- add: " .. entry.id .. " (**" .. entry.name .. "**)" .. ", "
|
||||
description = description .. "\n- add: " .. entry.id .. " (**" .. entry.name .. "**)"
|
||||
end
|
||||
|
||||
-- remove last delimiter (last two characters)
|
||||
description = description:sub(1, -3)
|
||||
|
||||
self.editInput({index = 0, value = description})
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user