more compact metadata

This commit is contained in:
Brian Coca 2017-02-27 19:42:25 -05:00
parent ae87bb632b
commit d0e1a1c6c3

View file

@ -273,9 +273,10 @@ class DocCLI(CLI):
text.append("Metadata:") text.append("Metadata:")
for k in doc['metadata']: for k in doc['metadata']:
if isinstance(k, list): if isinstance(k, list):
text.append("\t%s: %s\n" % (k.capitalize(), ", ".join(doc['metadata'][k]))) text.append("\t%s: %s" % (k.capitalize(), ", ".join(doc['metadata'][k])))
else: else:
text.append("\t%s: %s\n" % (k.capitalize(), doc['metadata'][k])) text.append("\t%s: %s" % (k.capitalize(), doc['metadata'][k]))
text.append("")
if 'action' in doc and doc['action']: if 'action' in doc and doc['action']:
text.append(" * note: %s\n" % "This module has a corresponding action plugin.") text.append(" * note: %s\n" % "This module has a corresponding action plugin.")