logo

stagit

STAtic GIT web view generator (in C) git clone https://hacktivis.me/git/stagit.git
commit: b34a16de39cdb2ba60ed7fb887a109fc935b68fc
parent 0d708f1f9adc9f7064e631ff3f2008905cc0c01c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 31 Jul 2022 05:58:38 +0200

stagit.c: Fix diff-note printing

Diffstat:

Mstagit.c4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/stagit.c b/stagit.c @@ -706,7 +706,7 @@ printshowfile(FILE *fp, struct commitinfo *ci) for (i = 0; i < ci->ndeltas; i++) { patch = ci->deltas[i]->patch; delta = git_patch_get_delta(patch); - fprintf(fp, "<b>diff --git a/<a id=\"h%zu\" href=\"%sfile/", i, relpath); + fprintf(fp, "<code class=\"diff-note\">diff --git a/<a id=\"h%zu\" href=\"%sfile/", i, relpath); percentencode(fp, delta->old_file.path, strlen(delta->old_file.path)); fputs(".html\">", fp); xmlencode(fp, delta->old_file.path, strlen(delta->old_file.path)); @@ -714,7 +714,7 @@ printshowfile(FILE *fp, struct commitinfo *ci) percentencode(fp, delta->new_file.path, strlen(delta->new_file.path)); fprintf(fp, ".html\">"); xmlencode(fp, delta->new_file.path, strlen(delta->new_file.path)); - fprintf(fp, "</a></strong>\n"); + fprintf(fp, "</a></code>\n"); /* check binary data */ if (delta->flags & GIT_DIFF_FLAG_BINARY) {