Commit 8fe9ed4e authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Add seperator in item listing (unnamed)

parent 9a70c511
...@@ -209,6 +209,7 @@ def print_list( ...@@ -209,6 +209,7 @@ def print_list(
counter = 1 counter = 1
prefix = '' prefix = ''
item_sep = False
for item in sorted(l): for item in sorted(l):
if item in exclude: if item in exclude:
continue continue
...@@ -218,6 +219,10 @@ def print_list( ...@@ -218,6 +219,10 @@ def print_list(
prefix = '%s%s' % (' ' * (ident - len(prefix)), prefix) prefix = '%s%s' % (' ' * (ident - len(prefix)), prefix)
else: else:
prefix = ' ' * ident prefix = ' ' * ident
if item_sep:
print '%s. . . . . . .' % prefix
else:
item_sep = True
if isinstance(item, dict): if isinstance(item, dict):
if with_enumeration: if with_enumeration:
print(prefix) print(prefix)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment