From b1426ef306d58400209d1713a097805ef4e0c107 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Wed, 25 Oct 2017 15:15:05 +0200 Subject: [PATCH] add: description is now added in the asciidoc output for the values --- tools/machinetag.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/machinetag.py b/tools/machinetag.py index 0515937..6d96471 100755 --- a/tools/machinetag.py +++ b/tools/machinetag.py @@ -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: