aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_help_html.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gen_help_html.lua')
-rw-r--r--scripts/gen_help_html.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen_help_html.lua b/scripts/gen_help_html.lua
index 3141ff3cdf..ccfa2e567e 100644
--- a/scripts/gen_help_html.lua
+++ b/scripts/gen_help_html.lua
@@ -350,7 +350,7 @@ local function visit_node(root, level, lang_tree, headings, opt, stats)
return node_text():match('^%s+') or ''
end
- if root:child_count() == 0 or node_name == 'ERROR' then
+ if root:named_child_count() == 0 or node_name == 'ERROR' then
text = node_text()
else
-- Process children and join them with whitespace.