From 7768d8119fe19924679e95a14313c92aa72736ac Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki Date: Wed, 16 Jul 2014 13:04:59 +0200 Subject: [PATCH] fix some PEP-8 parameter formatting issues Signed-off-by: Zygmunt Krynicki --- sphinxarg/ext.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sphinxarg/ext.py b/sphinxarg/ext.py index 650cd94..0228e47 100644 --- a/sphinxarg/ext.py +++ b/sphinxarg/ext.py @@ -51,8 +51,8 @@ def print_arg_list(data, nested_content): if 'choices' in arg: my_def.append(nodes.paragraph(text=('Possible choices: %s' % ', '.join(arg['choices'])))) items.append( - nodes.option_list_item('', - nodes.option_group('', nodes.option_string(text=name)), + nodes.option_list_item( + '', nodes.option_group('', nodes.option_string(text=name)), nodes.description('', *my_def) ) ) @@ -77,8 +77,8 @@ def print_opt_list(data, nested_content): if 'choices' in opt: my_def.append(nodes.paragraph(text=('Possible choices: %s' % ', '.join(opt['choices'])))) items.append( - nodes.option_list_item('', - nodes.option_group('', *names), + nodes.option_list_item( + '', nodes.option_group('', *names), nodes.description('', *my_def) ) ) @@ -88,18 +88,18 @@ def print_opt_list(data, nested_content): def print_command_args_and_opts(arg_list, opt_list, sub_list=None): items = [] if arg_list: - items.append(nodes.definition_list_item('', - nodes.term(text='Positional arguments:'), + items.append(nodes.definition_list_item( + '', nodes.term(text='Positional arguments:'), nodes.definition('', arg_list) )) if opt_list: - items.append(nodes.definition_list_item('', - nodes.term(text='Options:'), + items.append(nodes.definition_list_item( + '', nodes.term(text='Options:'), nodes.definition('', opt_list) )) if sub_list and len(sub_list): - items.append(nodes.definition_list_item('', - nodes.term(text='Sub-commands:'), + items.append(nodes.definition_list_item( + '', nodes.term(text='Sub-commands:'), nodes.definition('', sub_list) )) return nodes.definition_list('', *items)