neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 67fede0fc94bff89bb266b649b8d0a57858622d1
parent 7cc07e8383327f0701edccbe77120ceea2673bfa
Author: Shashwat Agrawal <72117025+ShashwatAgrawal20@users.noreply.github.com>
Date:   Tue, 12 Aug 2025 03:07:26 +0530

fix(gen_help_html): ASCII art rendering in docs #35262

Problem:
gen_help_html.lua script misinterprets parts of ASCII diagrams as help tags
(e.g., `|_________|` in `usr_28.txt`). This incorrectly triggered
special alignment-fixing logic that is meant for columnar text.

Signed-off-by: Shashwat Agrawal <shashwatagrawal473@gmail.com>
Diffstat:
Msrc/gen/gen_help_html.lua | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gen/gen_help_html.lua b/src/gen/gen_help_html.lua @@ -608,8 +608,8 @@ local function visit_node(root, level, lang_tree, headings, opt, stats) return string.format('<div class="help-li" style="%s">%s</div>', margin, text) elseif node_name == 'taglink' or node_name == 'optionlink' then local helppage, tagname, ignored = validate_link(root, opt.buf, opt.fname) - if ignored then - return text + if ignored or not helppage then + return html_esc(node_text(root)) end local s = ('%s<a href="%s#%s">%s</a>'):format( ws(),