From: Torsten Werner Date: Tue, 6 Jul 2010 08:30:11 +0000 (+0000) Subject: examine-package: add missing newlines to output X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=7688a62903282c6f1a989d4f2474785a7b0ff325;p=dak.git examine-package: add missing newlines to output Signed-off-by: Torsten Werner --- diff --git a/dak/examine_package.py b/dak/examine_package.py index a47a0324..5efd35cf 100755 --- a/dak/examine_package.py +++ b/dak/examine_package.py @@ -93,11 +93,11 @@ def headline(s, level=2, bodyelement=None): if bodyelement: return """ %(title)s (click to toggle) - """%{"bodyelement":bodyelement,"title":utils.html_escape(s)} + \n"""%{"bodyelement":bodyelement,"title":utils.html_escape(s)} else: - return "%s" % (level, utils.html_escape(s), level) + return "%s\n" % (level, utils.html_escape(s), level) else: - return "---- %s ----" % (s) + return "---- %s ----\n" % (s) # Colour definitions, 'end' isn't really for use @@ -154,22 +154,20 @@ def format_field(k,v): def foldable_output(title, elementnameprefix, content, norow=False): d = {'elementnameprefix':elementnameprefix} - header = '' + result = '' if use_html: - header = """""" - return header + title + body + footer + result += """""" + return result ################################################################################