more compact metadata
This commit is contained in:
parent
ae87bb632b
commit
d0e1a1c6c3
1 changed files with 6 additions and 5 deletions
|
@ -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.")
|
||||||
|
|
Loading…
Reference in a new issue