mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
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>
This commit is contained in:
@@ -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(),
|
||||
|
Reference in New Issue
Block a user