Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
kamaki
Commits
8fe9ed4e
Commit
8fe9ed4e
authored
Jun 17, 2013
by
Stavros Sachtouris
Browse files
Add seperator in item listing (unnamed)
parent
9a70c511
Changes
1
Hide whitespace changes
Inline
Side-by-side
kamaki/cli/utils.py
View file @
8fe9ed4e
...
...
@@ -209,6 +209,7 @@ def print_list(
counter
=
1
prefix
=
''
item_sep
=
False
for
item
in
sorted
(
l
):
if
item
in
exclude
:
continue
...
...
@@ -218,6 +219,10 @@ def print_list(
prefix
=
'%s%s'
%
(
' '
*
(
ident
-
len
(
prefix
)),
prefix
)
else
:
prefix
=
' '
*
ident
if
item_sep
:
print
'%s. . . . . . .'
%
prefix
else
:
item_sep
=
True
if
isinstance
(
item
,
dict
):
if
with_enumeration
:
print
(
prefix
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment