From: Torsten Werner Date: Tue, 6 Jul 2010 05:23:12 +0000 (+0000) Subject: examine-package: make headline() functional X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72a9711c48c24ed2166cdca2377a9d34cba183b6;p=dak examine-package: make headline() functional Signed-off-by: Torsten Werner --- diff --git a/dak/examine_package.py b/dak/examine_package.py index 402e26cc..f7fadf2a 100755 --- a/dak/examine_package.py +++ b/dak/examine_package.py @@ -91,13 +91,13 @@ def escape_if_needed(s): def headline(s, level=2, bodyelement=None): if use_html: if bodyelement: - print """ + return """ %(title)s (click to toggle) """%{"bodyelement":bodyelement,"title":utils.html_escape(s)} else: - print "%s" % (level, utils.html_escape(s), level) + return "%s" % (level, utils.html_escape(s), level) else: - print "---- %s ----" % (s) + return "---- %s ----" % (s) # Colour definitions, 'end' isn't really for use @@ -157,7 +157,7 @@ def foldable_output(title, elementnameprefix, content, norow=False): if use_html: print """