From 72a9711c48c24ed2166cdca2377a9d34cba183b6 Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Tue, 6 Jul 2010 05:23:12 +0000 Subject: [PATCH] examine-package: make headline() functional Signed-off-by: Torsten Werner --- dak/examine_package.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 """