diff options
Diffstat (limited to 'source/ui-stats.c')
| -rw-r--r-- | source/ui-stats.c | 18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 9 insertions, 9 deletions
diff --git a/source/ui-stats.c b/source/ui-stats.c index 89bb05f..f1a4d65 100644 --- a/source/ui-stats.c +++ b/source/ui-stats.c @@ -354,7 +354,7 @@ static void print_summary_row(struct string_list *authors, size_t from, htmlf("<td class='%s'>%ld</td>", centerclass, subtotal); total += subtotal; } - htmlf("<td class='%s'>%ld</td></tr>", rightclass, total); + htmlf("<td class='%s'>%ld</td></tr>\n", rightclass, total); } static void print_authors(struct string_list *authors, int max_rows, @@ -365,7 +365,7 @@ static void print_authors(struct string_list *authors, int max_rows, size_t i, column, rows; long total; - html("<table class='stats'><tr><th>Author</th>"); + html("<table class='stats'>\n<tr><th>Author</th>"); for (column = 0; column < labels->nr; column++) htmlf("<th>%s</th>", labels->items[column].string); html("<th>Total</th></tr>\n"); @@ -392,7 +392,7 @@ static void print_authors(struct string_list *authors, int max_rows, total += (uintptr_t)bucket->util; } } - htmlf("<td class='sum'>%ld</td></tr>", total); + htmlf("<td class='sum'>%ld</td></tr>\n", total); } if (rows < authors->nr) @@ -401,7 +401,7 @@ static void print_authors(struct string_list *authors, int max_rows, print_summary_row(authors, 0, authors->nr, "Total", "total", "sum", "sum", labels); - html("</table>"); + html("</table>\n"); } static const char *language_of(const char *pathname) @@ -512,8 +512,8 @@ static void print_languages(const struct lang_sizes *sizes) other += (uintptr_t)sizes->langs.items[i].util; } - html("<h2>Languages</h2>"); - html("<table class='stats'>"); + html("<h2>Languages</h2>\n"); + html("<table class='stats'>\n"); html("<tr><th>Language</th><th>Size</th><th>Share</th></tr>\n"); shown = 0; for (i = 0; i < sizes->langs.nr && shown < MAX_LANGUAGE_ROWS; i++) { @@ -526,7 +526,7 @@ static void print_languages(const struct lang_sizes *sizes) } if (other) print_language_row("Other", other, sizes->total); - html("</table>"); + html("</table>\n"); } static void print_options_form(const struct cgit_period *period, int top) @@ -547,7 +547,7 @@ static void print_options_form(const struct cgit_period *period, int top) html_option(cgit_fmt("%c", periods[i].code), periods[i].name, cgit_fmt("%c", period->code)); - html("</select></td></tr>"); + html("</select></td></tr>\n"); } html("<tr><td class='label'>Authors:</td>"); html("<td class='ctrl'><select name='ofs' data-autosubmit='1'>"); @@ -638,7 +638,7 @@ void cgit_show_stats(void) html_txt(ctx.qry.path); html("')"); } - html("</h2>"); + html("</h2>\n"); labels = build_period_labels(period); print_authors(&authors, top, &labels); |
