summaryrefslogtreecommitdiffabout
path: root/ui-commit.c
authorOndrej Jirman <ondrej.jirman@zonio.net>2007-05-25 23:14:25 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-05-31 08:18:00 (UTC)
commit0928d8827a714f3908efa7eb9eb4cde28761af26 (patch) (unidiff)
tree67175d206caf7e220a996f699cf56dfa5c0c945b /ui-commit.c
parent2a09c0d184ff64676e173072c074649666f4f735 (diff)
downloadcgit-0928d8827a714f3908efa7eb9eb4cde28761af26.zip
cgit-0928d8827a714f3908efa7eb9eb4cde28761af26.tar.gz
cgit-0928d8827a714f3908efa7eb9eb4cde28761af26.tar.bz2
Fixed unexpected tags in html output.
At least those that were catched by tidy. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'ui-commit.c') (more/less context) (ignore whitespace changes)
-rw-r--r--ui-commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-commit.c b/ui-commit.c
index 59eeb1d..6b135aa 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -100,13 +100,13 @@ void print_fileinfo(struct fileinfo *info)
100 htmlf("<td class='add' style='width: %.1f%%;'/>", 100 htmlf("<td class='add' style='width: %.1f%%;'/>",
101 info->added * 100.0 / max_changes); 101 info->added * 100.0 / max_changes);
102 htmlf("<td class='rem' style='width: %.1f%%;'/>", 102 htmlf("<td class='rem' style='width: %.1f%%;'/>",
103 info->removed * 100.0 / max_changes); 103 info->removed * 100.0 / max_changes);
104 htmlf("<td class='none' style='width: %.1f%%;'/>", 104 htmlf("<td class='none' style='width: %.1f%%;'/>",
105 (max_changes - info->removed - info->added) * 100.0 / max_changes); 105 (max_changes - info->removed - info->added) * 100.0 / max_changes);
106 html("</tr></table></a></td></tr>\n"); 106 html("</tr></table></td></tr>\n");
107} 107}
108 108
109void cgit_count_diff_lines(char *line, int len) 109void cgit_count_diff_lines(char *line, int len)
110{ 110{
111 if (line && (len > 0)) { 111 if (line && (len > 0)) {
112 if (line[0] == '+') 112 if (line[0] == '+')