mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #1749 from jpmens/andoc3
ansible-doc: print Notes heading only if there are any
This commit is contained in:
commit
42f769637e
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ def print_man(doc):
|
||||||
print "%s\n" % textwrap.fill(tty_ify(desc), initial_indent=opt_indent,
|
print "%s\n" % textwrap.fill(tty_ify(desc), initial_indent=opt_indent,
|
||||||
subsequent_indent=opt_indent)
|
subsequent_indent=opt_indent)
|
||||||
|
|
||||||
if 'notes' in doc:
|
if 'notes' in doc and len(doc['notes']) > 0:
|
||||||
notes = "".join(doc['notes'])
|
notes = "".join(doc['notes'])
|
||||||
print "Notes:%s\n" % textwrap.fill(tty_ify(notes), initial_indent=" ",
|
print "Notes:%s\n" % textwrap.fill(tty_ify(notes), initial_indent=" ",
|
||||||
subsequent_indent=opt_indent)
|
subsequent_indent=opt_indent)
|
||||||
|
|
Loading…
Reference in a new issue