diff options
author | Marc Bonnici <marc.bonnici@arm.com> | 2018-03-19 17:10:06 +0000 |
---|---|---|
committer | setrofim <setrofim@gmail.com> | 2018-04-24 09:59:57 +0100 |
commit | 98bed3822a585735df6f23d5a9ca65fcc58f70f4 (patch) | |
tree | b37dddb03ea7a604dd3aa4052c9f4e6cbbf77672 /wa/utils | |
parent | 1fede5e3f3358cd0275e90d9aa26e082347d2aac (diff) |
utils/docs: Update format of parameter type rst output
Diffstat (limited to 'wa/utils')
-rw-r--r-- | wa/utils/doc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wa/utils/doc.py b/wa/utils/doc.py index b60add3f..315bf8b5 100644 --- a/wa/utils/doc.py +++ b/wa/utils/doc.py @@ -273,8 +273,8 @@ def format_literal(lit): def get_params_rst(parameters): text = '' for param in parameters: - text += '{} : {} {}\n'.format(param.name, get_type_name(param.kind), - param.mandatory and '(mandatory)' or ' ') + text += '{}: {}\n'.format(param.name, param.mandatory and '(mandatory)' or ' ') + text += indent("type: ``'{}'``\n\n".format(get_type_name(param.kind))) desc = strip_inlined_text(param.description or '') text += indent('{}\n'.format(desc)) if param.aliases: |