1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-05 18:31:12 +01:00

utils/docs: Update format of parameter type rst output

This commit is contained in:
Marc Bonnici 2018-03-19 17:10:06 +00:00 committed by setrofim
parent 1fede5e3f3
commit 98bed3822a

View File

@ -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: