gen_api_vimdoc.py: support Doxygen @note

This commit is contained in:
Justin M. Keyes 2017-11-06 03:59:34 +01:00
parent fb3c21e090
commit 7984959ef5

View File

@ -217,7 +217,12 @@ def parse_para(parent, width=62):
width=width) + '\n')
elif child.nodeName == 'simplesect':
kind = child.getAttribute('kind')
if kind == 'return':
if kind == 'note':
lines.append('Note:')
lines.append(doc_wrap(parse_para(child),
prefix=' ',
width=width))
elif kind == 'return':
lines.append('%s:~' % kind.title())
lines.append(doc_wrap(parse_para(child),
prefix=' ',