From e1b24b557d00407fb96755c34a8956afff56a51a Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 26 Sep 2026 08:38:40 -1000 Subject: Add stable markup hooks for site themes --- source/ui-commit.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source/ui-commit.c') diff --git a/source/ui-commit.c b/source/ui-commit.c index 1fdc5fa..1ac96aa 100644 --- a/source/ui-commit.c +++ b/source/ui-commit.c @@ -31,7 +31,7 @@ static void print_ident_row(const char *role, const char *name, const char *email, timestamp_t date, int tz) { - htmlf("%s", role); + htmlf("%s", role); cgit_open_filter(ctx.repo->email_filter, email ? email : "", "commit"); html_txt(name); if (ctx.cfg.enable_plain_email) { @@ -69,7 +69,7 @@ static int print_parent_rows(struct commit *commit, const char *rev, const char } if (!parents) oidcpy(first, &p->item->object.oid); - html("parent
"); + html("parent
"); parent_hex = label = oid_to_hex(&p->item->object.oid); info = ctx.repo->enable_subject_links ? cgit_parse_commit(parent) : NULL; if (info) @@ -178,7 +178,7 @@ static void print_trailers(const char *msg) html("\n"); strbuf_reset(&key); strbuf_addbuf(&key, &iter.key); - html(""); + html(""); html_txt(key.buf); html(""); open = 1; @@ -279,7 +279,7 @@ void cgit_print_commit(char *hex, const char *prefix) // The spanning cells are kept out of the column widths, so a hash row // never pushes the dates away from the names above it. - html("commit
"); + html("commit
"); commit_hex = oid_to_hex(&commit->object.oid); cgit_commit_link(commit_hex, NULL, NULL, ctx.qry.head, commit_hex, prefix); html(" ("); @@ -290,7 +290,7 @@ void cgit_print_commit(char *hex, const char *prefix) // together, leaving the tree beside the download links. parents = print_parent_rows(commit, hex, prefix, &first_oid); - html("tree
"); + html("tree
"); tree_rev = xstrdup(hex); cgit_tree_link(oid_to_hex(get_commit_tree_oid(commit)), NULL, NULL, ctx.qry.head, tree_rev, NULL); if (prefix) { @@ -301,7 +301,7 @@ void cgit_print_commit(char *hex, const char *prefix) html("
\n"); if (ctx.repo->snapshots) { - html("download
"); + html("download
"); cgit_print_snapshot_links(ctx.repo, hex, "
"); html("
\n"); } -- cgit v2.8.0