From 1fae1d7dc881b1e4d4c5afed4de3baa7cf47bc42 Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Tue, 26 Jan 2021 13:37:09 -0800 Subject: docgen: fix if malformed json entries present --- scripts/docgen.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/docgen.lua') diff --git a/scripts/docgen.lua b/scripts/docgen.lua index 35ab6b73..33f78130 100644 --- a/scripts/docgen.lua +++ b/scripts/docgen.lua @@ -165,6 +165,9 @@ local function make_lsp_sections() -- local function pre(s) return string.format("
%s
", s) end -- local function code(s) return string.format("%s", s) end + if not (type(v) == "table") then + return + end return make_section(0, '\n', { "- "..make_section(0, ': ', { bold(tick(k)); -- cgit v1.2.3-70-g09d2