aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/docgen.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/docgen.lua b/scripts/docgen.lua
index a2583a36..3b02949e 100644
--- a/scripts/docgen.lua
+++ b/scripts/docgen.lua
@@ -69,6 +69,9 @@ for k, v in pairs(skeleton) do
for _, dk in ipairs(keys) do
local dv = tconf.default_config[dk]
local description = tconf.docs and tconf.docs.default_config and tconf.docs.default_config[dk]
+ if description and type(description) ~= 'string' then
+ description = inspect(description)
+ end
table.insert(lines, indent(2, string.format("%s = %s", dk, description or inspect(dv))))
end
params.default_config = indent(0, table.concat(lines, '\n'))