From 7688a62903282c6f1a989d4f2474785a7b0ff325 Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Tue, 6 Jul 2010 08:30:11 +0000 Subject: [PATCH] examine-package: add missing newlines to output Signed-off-by: Torsten Werner --- dak/examine_package.py | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) 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 ################################################################################ -- 2.39.5