add: description is now added in the asciidoc output for the values

pull/76/head
Alexandre Dulaunoy 2017-10-25 15:15:05 +02:00
parent adfa0e91c0
commit b1426ef306
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 2 additions and 0 deletions

View File

@ -140,6 +140,8 @@ for taxonomy in taxonomies:
if args.a and 'expanded' in v:
doc = asciidoc(content=machineTag(namespace=namespace, predicate=e['predicate'], value=v['value']), adoc=doc)
doc = asciidoc(content=machineTag(namespace=namespace, predicate=v['expanded']), adoc=doc, t='description')
if 'description' in v:
doc = asciidoc(content=machineTag(namespace=namespace, predicate=v['description']), adoc=doc, t='description')
else:
print(machineTag(namespace=namespace, predicate=e['predicate'], value=v['value']))
if args.e: