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-refs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/ui-refs.c') diff --git a/source/ui-refs.c b/source/ui-refs.c index 8490417..624d1a0 100644 --- a/source/ui-refs.c +++ b/source/ui-refs.c @@ -186,7 +186,7 @@ static void print_refs_link(const char *path) { html(""); cgit_refs_link("[...]", NULL, NULL, ctx.qry.head, NULL, path); - html(""); + html("\n"); } static void print_ref_pager(int ofs, int pagesize, int count, const char *path) @@ -214,7 +214,7 @@ static void print_ref_pager(int ofs, int pagesize, int count, const char *path) html("'>[next]"); free(url); } - html(""); + html("\n"); } static struct ref_page page_bounds(int pagesize, int count) @@ -334,7 +334,7 @@ void cgit_print_tags(int maxcount) void cgit_print_refs(void) { cgit_print_layout_start(); - html(""); + html("
\n"); if (ctx.qry.path && starts_with(ctx.qry.path, "heads")) print_branches_page(ctx.cfg.max_ref_count); @@ -342,9 +342,9 @@ void cgit_print_refs(void) print_tags_page(ctx.cfg.max_ref_count); else { cgit_print_branches(ctx.cfg.max_ref_count); - html(""); + html("\n"); cgit_print_tags(ctx.cfg.max_ref_count); } - html("
 
 
"); + html("\n"); cgit_print_layout_end(); } -- cgit v2.8.0