summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJan-Piet Mens <jpmens@gmail.com>2012-12-11 08:26:12 +0100
committerJan-Piet Mens <jpmens@gmail.com>2012-12-11 08:26:12 +0100
commite913fb8732ecef3588db1494d539d3462bc8b499 (patch)
treedb088b7609dadd67e4c42d1bd8529b3d38beaff6 /bin
parent959a46108000b876e4381f5efe792d9df4f5285d (diff)
downloadansible-e913fb8732ecef3588db1494d539d3462bc8b499.tar.gz
print Notes heading only if there are any
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ansible-doc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ansible-doc b/bin/ansible-doc
index d22b6a195a..c892242357 100755
--- a/bin/ansible-doc
+++ b/bin/ansible-doc
@@ -83,7 +83,7 @@ def print_man(doc):
print "%s\n" % textwrap.fill(tty_ify(desc), initial_indent=opt_indent,
subsequent_indent=opt_indent)
- if 'notes' in doc:
+ if 'notes' in doc and len(doc['notes']) > 0:
notes = "".join(doc['notes'])
print "Notes:%s\n" % textwrap.fill(tty_ify(notes), initial_indent=" ",
subsequent_indent=opt_indent)