Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
52a55a35
Commit
52a55a35
authored
Dec 14, 2012
by
Jan-Piet Mens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup Example output in ansible-doc
parent
f2893b64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
bin/ansible-doc
+4
-2
No files found.
bin/ansible-doc
View file @
52a55a35
...
...
@@ -89,8 +89,10 @@ def print_man(doc):
subsequent_indent
=
opt_indent
)
for
ex
in
doc
[
'examples'
]:
print
"
%
s
%
s"
%
(
opt_indent
,
ex
[
'code'
])
if
'examples'
in
doc
and
len
(
doc
[
'examples'
])
>
0
:
print
"Example
%
s:
\n
"
%
(
''
if
len
(
doc
[
'examples'
])
<
2
else
's'
)
for
ex
in
doc
[
'examples'
]:
print
"
%
s
\n
"
%
(
ex
[
'code'
])
def
print_snippet
(
doc
):
...
...
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