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-shared.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'source/ui-shared.c') diff --git a/source/ui-shared.c b/source/ui-shared.c index 1f45520..12df3b2 100644 --- a/source/ui-shared.c +++ b/source/ui-shared.c @@ -302,7 +302,7 @@ static void print_abs_date(time_t t, int tz) html_attr(show_date(t, tz, cgit_date_mode(DATE_ISO8601))); html("'>"); html_txt(show_date(t, tz, configured_date_mode())); - html(""); + html(""); } static void print_rel_date(time_t t, int tz, double count, const char *class, @@ -349,7 +349,7 @@ static int emit_css_link(struct string_list_item *item, void *fallback) html_attr(item->string); else html_attr((const char *)fallback); - html("'/>\n"); + html("'>\n"); return 0; } @@ -651,10 +651,10 @@ static void self_link(const char *name, const char *title, const char *class) cgit_stats_link(name, title, class, ctx.qry.head, ctx.qry.path); else { + // A page name this switch does not know still gets a plain + // repolink, which covers any simple page added later. repolink(title, class, ctx.qry.page, ctx.qry.head, ctx.qry.path); - html(">"); + html("'>"); html_txt(name); html(""); } @@ -1216,7 +1216,7 @@ void cgit_print_docend(void) { html("\n"); if (ctx.cfg.embedded) { - html(" \n"); + html("\n"); if (ctx.cfg.footer) html_include(ctx.cfg.footer); return; @@ -1229,7 +1229,7 @@ void cgit_print_docend(void) html_txt(show_date(time(NULL), 0, cgit_date_mode(DATE_ISO8601))); html("\n"); } - html(" \n"); + html("\n"); html("\n\n"); } @@ -1306,7 +1306,7 @@ void cgit_add_hidden_formfields(int incl_head, int incl_search, void cgit_print_pageheader(void) { - html("
"); + html("
\n"); if (!ctx.env.authenticated || !ctx.cfg.noheader) print_header(); @@ -1340,7 +1340,7 @@ void cgit_print_pageheader(void) ctx.qry.follow = !ctx.qry.follow; html(")"); } - html(""); + html("\n"); } html("
\n"); } -- cgit v2.8.0