mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
fix(gen_vimdoc.py): spacing around inline elements #16092
The spacing fix drew attention to a couple of places that were using incorrect formatting such as the key listing for `nvim_open_win`, so those were fixed too.
This commit is contained in:
@@ -506,6 +506,11 @@ def render_node(n, text, prefix='', indent='', width=62):
|
||||
text += indent + prefix + result
|
||||
elif n.nodeName in ('para', 'heading'):
|
||||
for c in n.childNodes:
|
||||
if (is_inline(c)
|
||||
and '' != get_text(c).strip()
|
||||
and text
|
||||
and ' ' != text[-1]):
|
||||
text += ' '
|
||||
text += render_node(c, text, indent=indent, width=width)
|
||||
elif n.nodeName == 'itemizedlist':
|
||||
for c in n.childNodes:
|
||||
|
Reference in New Issue
Block a user