fix fsdump() dumping passed strings - just paste them raw

This commit is contained in:
whosit 2025-04-07 11:37:25 +03:00
parent b5f78fea9f
commit bb8c4cd070

View File

@ -195,7 +195,7 @@ fsinput(label, text) -- show a form that will return the text you entered
end,
yield = coroutine.yield,
fsdump = function(value)
local output = dump(value)
local output = type(value) == "string" and value or dump(value)
local fs = {
"formspec_version[6]",
"size[19,10]",