From 9943065ccb6532511b0c861d30fe77e8fed43a7f Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 14 Aug 2026 12:09:44 -1000 Subject: Tidy the structure of the generated markup --- source/ui-stats.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'source/ui-stats.c') 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("%ld", centerclass, subtotal); total += subtotal; } - htmlf("%ld", rightclass, total); + htmlf("%ld\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(""); + html("
Author
\n"); for (column = 0; column < labels->nr; column++) htmlf("", labels->items[column].string); html("\n"); @@ -392,7 +392,7 @@ static void print_authors(struct string_list *authors, int max_rows, total += (uintptr_t)bucket->util; } } - htmlf("", total); + htmlf("\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("
Author%sTotal
%ld
%ld
"); + html("\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("

Languages

"); - html(""); + html("

Languages

\n"); + html("
\n"); html("\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("
LanguageSizeShare
"); + html("\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(""); + html("\n"); } html("Authors:"); html("