From e913fb8732ecef3588db1494d539d3462bc8b499 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Tue, 11 Dec 2012 08:26:12 +0100 Subject: [PATCH] print Notes heading only if there are any --- bin/ansible-doc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ansible-doc b/bin/ansible-doc index d22b6a195a1..c8922423574 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)