now does not error out when notes are not included in module
This commit is contained in:
parent
d9cf9abc12
commit
16f3f8e244
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ class DocCLI(CLI):
|
||||||
text.append("%s\n" % textwrap.fill(CLI.tty_ify(desc), initial_indent=opt_indent,
|
text.append("%s\n" % textwrap.fill(CLI.tty_ify(desc), initial_indent=opt_indent,
|
||||||
subsequent_indent=opt_indent))
|
subsequent_indent=opt_indent))
|
||||||
|
|
||||||
if 'notes' in doc and len(doc['notes']) > 0:
|
if 'notes' in doc and doc['notes'] and len(doc['notes']) > 0:
|
||||||
notes = " ".join(doc['notes'])
|
notes = " ".join(doc['notes'])
|
||||||
text.append("Notes:%s\n" % textwrap.fill(CLI.tty_ify(notes), initial_indent=" ",
|
text.append("Notes:%s\n" % textwrap.fill(CLI.tty_ify(notes), initial_indent=" ",
|
||||||
subsequent_indent=opt_indent))
|
subsequent_indent=opt_indent))
|
||||||
|
|
Loading…
Reference in a new issue