minor display changes in metadata

This commit is contained in:
Brian Coca 2017-03-01 13:12:24 -05:00
parent b2f7e583d3
commit 7b9f16becb

View file

@ -341,12 +341,12 @@ class DocCLI(CLI):
text.append('') text.append('')
if doc['metadata'] and isinstance(doc['metadata'], dict): if doc['metadata'] and isinstance(doc['metadata'], dict):
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" % (k.capitalize(), ", ".join(doc['metadata'][k]))) text.append("\t%s: %s" % (k.capitalize(), ", ".join(doc['metadata'][k])))
else: else:
text.append("\t%s: %s" % (k.capitalize(), doc['metadata'][k])) text.append("\t%s: %s" % (k.capitalize(), doc['metadata'][k]))
text.append("") text.append('')
return "\n".join(text) return "\n".join(text)