浏览代码

Move </tr> to right place.

Heikki Hokkanen 11 年前
父节点
当前提交
3a4ea58fd3
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      gitstats

+ 2
- 1
gitstats 查看文件

@@ -940,12 +940,13 @@ class HTMLReportCreator(ReportCreator):
940 940
 		f.write(html_header(2, 'Commits by Timezone'))
941 941
 		f.write('<table><tr>')
942 942
 		f.write('<th>Timezone</th><th>Commits</th>')
943
+		f.write('</tr>')
943 944
 		max_commits_on_tz = max(data.commits_by_timezone.values())
944 945
 		for i in sorted(data.commits_by_timezone.keys(), key = lambda n : int(n)):
945 946
 			commits = data.commits_by_timezone[i]
946 947
 			r = 127 + int((float(commits) / max_commits_on_tz) * 128)
947 948
 			f.write('<tr><th>%s</th><td style="background-color: rgb(%d, 0, 0)">%d</td></tr>' % (i, r, commits))
948
-		f.write('</tr></table>')
949
+		f.write('</table>')
949 950
 
950 951
 		f.write('</body></html>')
951 952
 		f.close()