diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-07-02 20:41:11 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-07-18 13:38:06 +0200 |
commit | 061545068816ac346addf0fecdc2f554983251f4 (patch) | |
tree | 3e55cbeaac59b359e21c79e38c1e5c900dfb7af4 /scripts/gen_api_vimdoc.py | |
parent | 1999919c3142f41821c74ccb9bd785948e26674c (diff) | |
download | rneovim-061545068816ac346addf0fecdc2f554983251f4.tar.gz rneovim-061545068816ac346addf0fecdc2f554983251f4.tar.bz2 rneovim-061545068816ac346addf0fecdc2f554983251f4.zip |
gen_api_vimdoc.py: add whitespace before "~"
Diffstat (limited to 'scripts/gen_api_vimdoc.py')
-rwxr-xr-x | scripts/gen_api_vimdoc.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/gen_api_vimdoc.py b/scripts/gen_api_vimdoc.py index 4c99686faf..0bbc3706c6 100755 --- a/scripts/gen_api_vimdoc.py +++ b/scripts/gen_api_vimdoc.py @@ -188,7 +188,7 @@ def parse_params(parent, width=62): desc = parse_parblock(desc_node, width=None) items.append((name.strip(), desc.strip())) - out = 'Parameters:~\n' + out = 'Parameters: ~\n' for name, desc in items: name = ' %s' % name.ljust(name_length) out += doc_wrap(desc, prefix=name, width=width) + '\n' @@ -229,7 +229,7 @@ def parse_para(parent, width=62): prefix=' ', width=width)) elif kind == 'return': - lines.append('%s:~' % kind.title()) + lines.append('%s: ~' % kind.title()) lines.append(doc_wrap(parse_para(child), prefix=' ', width=width)) @@ -361,16 +361,16 @@ def parse_source_xml(filename): annotations = '\n'.join(annotations) if annotations: - annotations = ('\n\nAttributes:~\n' + + annotations = ('\n\nAttributes: ~\n' + textwrap.indent(annotations, ' ')) - i = doc.rfind('Parameters:~') + i = doc.rfind('Parameters: ~') if i == -1: doc += annotations else: doc = doc[:i] + annotations + '\n\n' + doc[i:] if 'INCLUDE_C_DECL' in os.environ: - doc += '\n\nC Declaration:~\n>\n' + doc += '\n\nC Declaration: ~\n>\n' doc += c_decl doc += '\n<' @@ -441,7 +441,7 @@ def gen_docs(config): doc += '\n\n' + functions if 'INCLUDE_DEPRECATED' in os.environ and deprecated: - doc += '\n\n\nDeprecated %s Functions:~\n\n' % name + doc += '\n\n\nDeprecated %s Functions: ~\n\n' % name doc += deprecated if doc: |