summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-13 16:14:09 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-13 16:14:09 +0100
commitca290806dcc9a9371c9ccf893d08a270077ccd23 (patch)
tree9df9befb3eeac4f36f06df46707331cca0317ff1 /bin
parentad6ede5d04a2db29dd0a6889bb84559e6a0945f0 (diff)
downloadjenkins.debian.net-ca290806dcc9a9371c9ccf893d08a270077ccd23.tar.xz
reproducible: consistent empty lines
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_notes.py9
1 files changed, 9 insertions, 0 deletions
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("""
</td>
</tr>
</table>""".splitlines(True)))
+
note_issues_html = Template((tab*3).join("""
<tr>
<td>
@@ -43,6 +44,7 @@ note_issues_html = Template((tab*3).join("""
$issues
</td>
</tr>""".splitlines(True)))
+
note_bugs_html = Template((tab*4).join("""
<tr>
<td>
@@ -52,6 +54,7 @@ note_bugs_html = Template((tab*4).join("""
$bugs
</td>
</tr>""".splitlines(True)))
+
note_comments_html = Template((tab*3).join("""
<tr>
<td>
@@ -71,6 +74,7 @@ note_issue_html_url = Template((tab*6).join("""
<a href="$url" target="_blank">$url</a>
</td>
</tr>""".splitlines(True)))
+
note_issue_html_desc = Template((tab*6).join("""
<tr>
<td>
@@ -80,6 +84,7 @@ note_issue_html_desc = Template((tab*6).join("""
$description
</td>
</tr>""".splitlines(True)))
+
note_issue_html = Template((tab*5).join(("""
<table class="body">
<tr>
@@ -103,6 +108,7 @@ issue_html_url = Template((tab*4).join("""
<a href="$url">$url</a>
</td>
</tr>""".splitlines(True)))
+
issue_html = Template((tab*3).join("""
<table class="body">
<tr>
@@ -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)