minor display changes in metadata
This commit is contained in:
parent
b2f7e583d3
commit
7b9f16becb
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue