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-repolist.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/ui-repolist.c') diff --git a/source/ui-repolist.c b/source/ui-repolist.c index a8b401f..c81d822 100644 --- a/source/ui-repolist.c +++ b/source/ui-repolist.c @@ -217,7 +217,7 @@ static void print_section_row(const char *section, int columns) htmlf("", columns); html_txt(section); - html(""); + html("\n"); } static void print_repo_row(const char *currenturl, int sublevel) @@ -269,7 +269,7 @@ static void print_pager(int total, int pagelen, char *search, char *sort) int i, ofs; char *class = NULL; - html("\n"); } static int cmp_str(const char *s1, const char *s2) @@ -424,7 +424,7 @@ void cgit_print_repolist(void) sort_repolist("section"); currenturl = cgit_currenturl(); - html(""); + html("
\n"); for (i = 0; i < cgit_repolist.count; i++) { char *section; @@ -452,7 +452,7 @@ void cgit_print_repolist(void) } print_repo_row(currenturl, !column_sorted && section); } - html("
"); + html("\n"); if (hits > ctx.cfg.max_repo_count) print_pager(hits, ctx.cfg.max_repo_count, ctx.qry.search, ctx.qry.sort); free(currenturl); -- cgit v2.8.0