diff --git a/scripts/gen_help_html.lua b/scripts/gen_help_html.lua index 20aeb2791e..f6e799508b 100644 --- a/scripts/gen_help_html.lua +++ b/scripts/gen_help_html.lua @@ -670,7 +670,7 @@ local function visit_node(root, level, lang_tree, headings, opt, stats) return text end local in_heading = vim.list_contains({ 'h1', 'h2', 'h3' }, parent) - local h4 = (not in_heading and get_indent(node_text()) > 8) + local h4 = not in_heading and not next_ and get_indent(node_text()) > 8 -- h4 pseudo-heading local cssclass = h4 and 'help-tag-right' or 'help-tag' local tagname = node_text(root:child(1), false) if vim.tbl_count(stats.first_tags) < 2 then