Description added in the asciidoctor output

pull/8/head
Alexandre Dulaunoy 2015-12-01 17:37:00 +01:00
parent 2573068132
commit f38452ed8b
1 changed files with 2 additions and 0 deletions

View File

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