]> granicus.if.org Git - icinga2/commitdiff
changelog.py: Fix non-links formatting
authorMichael Friedrich <michael.friedrich@netways.de>
Thu, 18 Jun 2015 13:57:44 +0000 (15:57 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Fri, 19 Jun 2015 07:43:46 +0000 (09:43 +0200)
refs #9435

changelog.py

index e0ef1f38fafd7a329d7adefe9ba1867a2a19e4d9..841d168357be0d17fc7472f01fb70dc6ea29028d 100755 (executable)
@@ -50,9 +50,9 @@ def format_logentry(log_entry, args = args, issue_url = ISSUE_URL):
            return "* {0} [{1}]({3}{1} \"{0} {1}\"): {2}".format(log_entry[0], log_entry[1], log_entry[2], issue_url)
    else:
        if args.html:
-           return "<li>{0} <a href=\"{3}{1}\">{1}</a>: {2}</li>".format(log_entry[0], log_entry[1], log_entry[2], issue_url)
+           return "<li>%s %d: %s</li>" % log_entry
        else:
-           return "* {0} [{1}]({3}{1} \"{0} {1}\"): {2}".format(log_entry[0], log_entry[1], log_entry[2], issue_url)
+           return "* %s %d: %s" % log_entry
 
 
 version_name = args.version