X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fexamine_package.py;h=5efd35cf50ef8666968b173a4569a1efb2604164;hb=7688a62903282c6f1a989d4f2474785a7b0ff325;hp=a47a032463a0f5a18034b8f8331e9bea2cf52e0a;hpb=83b5e02a64248a77071d8b45de68821e05e191ab;p=dak.git 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 = """
- """%d - title = headline(title, bodyelement="%(elementnameprefix)s-body"%d) - body = '' + result += """
\n"""%d + result += headline(title, bodyelement="%(elementnameprefix)s-body"%d) if use_html: - body = """ """%d + result += """ \n"""%d if norow: - body = content + result += content + "\n" else: - body = output_row(content) - footer = '' + result += output_row(content) + "\n" if use_html: - footer = """
""" - return header + title + body + footer + result += """""" + return result ################################################################################