Skip to content

Commit

Permalink
minor formatting changes for closing parentheses
Browse files Browse the repository at this point in the history
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  • Loading branch information
zyga committed Jul 21, 2014
1 parent ed145be commit cada261
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions sphinxarg/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ def print_arg_list(data, nested_content):
items.append(
nodes.option_list_item(
'', nodes.option_group('', nodes.option_string(text=name)),
nodes.description('', *my_def)
)
)
nodes.description('', *my_def)))
return nodes.option_list('', *items) if items else None


Expand All @@ -87,9 +85,7 @@ def print_opt_list(data, nested_content):
items.append(
nodes.option_list_item(
'', nodes.option_group('', *names),
nodes.description('', *my_def)
)
)
nodes.description('', *my_def)))
return nodes.option_list('', *items) if items else None


Expand All @@ -98,18 +94,15 @@ def print_command_args_and_opts(arg_list, opt_list, sub_list=None):
if arg_list:
items.append(nodes.definition_list_item(
'', nodes.term(text='Positional arguments:'),
nodes.definition('', arg_list)
))
nodes.definition('', arg_list)))
if opt_list:
items.append(nodes.definition_list_item(
'', nodes.term(text='Options:'),
nodes.definition('', opt_list)
))
nodes.definition('', opt_list)))
if sub_list and len(sub_list):
items.append(nodes.definition_list_item(
'', nodes.term(text='Sub-commands:'),
nodes.definition('', sub_list)
))
nodes.definition('', sub_list)))
return nodes.definition_list('', *items)


Expand Down

0 comments on commit cada261

Please sign in to comment.