From ca290806dcc9a9371c9ccf893d08a270077ccd23 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 13 Mar 2015 16:14:09 +0100 Subject: reproducible: consistent empty lines --- bin/reproducible_html_notes.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bin/reproducible_html_notes.py') diff --git a/bin/reproducible_html_notes.py b/bin/reproducible_html_notes.py index 44efff0d..13ef4c61 100755 --- a/bin/reproducible_html_notes.py +++ b/bin/reproducible_html_notes.py @@ -34,6 +34,7 @@ note_html = Template((tab*2).join(""" """.splitlines(True))) + note_issues_html = Template((tab*3).join(""" @@ -43,6 +44,7 @@ note_issues_html = Template((tab*3).join(""" $issues """.splitlines(True))) + note_bugs_html = Template((tab*4).join(""" @@ -52,6 +54,7 @@ note_bugs_html = Template((tab*4).join(""" $bugs """.splitlines(True))) + note_comments_html = Template((tab*3).join(""" @@ -71,6 +74,7 @@ note_issue_html_url = Template((tab*6).join(""" $url """.splitlines(True))) + note_issue_html_desc = Template((tab*6).join(""" @@ -80,6 +84,7 @@ note_issue_html_desc = Template((tab*6).join(""" $description """.splitlines(True))) + note_issue_html = Template((tab*5).join((""" @@ -103,6 +108,7 @@ issue_html_url = Template((tab*4).join(""" $url""".splitlines(True))) + issue_html = Template((tab*3).join("""
@@ -227,6 +233,7 @@ def gen_html_note(package, note): str(note['package']) + ' note') return note_html.substitute(version='N/A', infos=infos) + def gen_html_issue(issue): """ Given a issue as input (as a dict: @@ -315,6 +322,7 @@ def iterate_over_notes(notes): log.info("you can now see your notes at " + desturl) i = i + 1 + def iterate_over_issues(issues): num_issues = str(len(issues)) i = 0 @@ -332,6 +340,7 @@ def iterate_over_issues(issues): log.info("you can now see the issue at " + desturl) i = i + 1 + def sort_issues(issue): try: return (-len(issues_count[issue]), issue) -- cgit v1.2.3-70-g09d2