From f9d423643e5a99fc197681dde8523756b9bef2fb Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Sun, 30 Apr 2017 11:32:11 +0200 Subject: [PATCH] Fix the asciidoctor admonition reference to have a proper output --- tools/machinetag.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/machinetag.py b/tools/machinetag.py index 9e952f1..b65151b 100755 --- a/tools/machinetag.py +++ b/tools/machinetag.py @@ -77,11 +77,16 @@ def asciidoc(content=False, adoc=doc, t='title'): content = '=== ' + content elif t == 'namespace': content = '== ' + content + '\n' - content = "{} {} {} {} {} {} {}".format(content, 'NOTE:', namespace, 'namespace available in JSON format at https://github.com/MISP/misp-taxonomies/blob/master/', + content = "{}\n{}{} {}{}{} {}".format(content, 'NOTE: ', namespace, 'namespace available in JSON format at https://github.com/MISP/misp-taxonomies/blob/master/', namespace, '/machinetag.json[*this location*]. The JSON format can be freely reused in your application', 'or automatically enabled in https://www.github.com/MISP/MISP[MISP] taxonomy.') elif t == 'description': - content = '\n' + content + '\n' + try: + (n, value) = content.split(":", 1) + content = "\n{} \n".format(value) + except: + content = "\n{} \n".format(content) + adoc = adoc + content return adoc