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-commit.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source/ui-commit.c') diff --git a/source/ui-commit.c b/source/ui-commit.c index 5a71954..befff25 100644 --- a/source/ui-commit.c +++ b/source/ui-commit.c @@ -55,7 +55,7 @@ static int print_parent_rows(struct commit *commit, const char *rev, if (!parent) { html(""); cgit_print_error("Error reading parent commit"); - html(""); + html("\n"); continue; } html("parent" @@ -68,7 +68,7 @@ static int print_parent_rows(struct commit *commit, const char *rev, html(" ("); cgit_diff_link("diff", NULL, NULL, ctx.qry.head, rev, oid_to_hex(&p->item->object.oid), prefix); - html(")"); + html(")\n"); parents++; } return parents; @@ -153,16 +153,16 @@ void cgit_print_commit(char *hex, const char *prefix) html("
"); print_filtered_text(info->subject); cgit_print_commit_decorations(commit); - html("
"); + html("\n"); html("
"); print_filtered_text(info->msg); - html("
"); + html("\n"); if (notes.len != 0) { - html("
Notes
"); + html("
Notes
\n"); html("
"); print_filtered_text(notes.buf); - html("
"); - html(""); + html("\n"); + html("\n"); } if (parents < OCTOPUS_PARENTS) { -- cgit v2.8.0