logo

stagit

STAtic GIT web view generator (in C) git clone https://hacktivis.me/git/stagit.git
commit: a284f3a9b56601e2c7fe6e04d150c56ad8b517d6
parent c8d9110a5b3eacc4ccc059fff8b08cf49bd187cb
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 31 Jul 2017 09:02:10 +0200

stagit.c: Remove <b> (or replace to strong)

Diffstat:

Mstagit.c34+++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/stagit.c b/stagit.c @@ -560,21 +560,21 @@ writeblobhtml(FILE *fp, const git_blob *blob) void printcommit(FILE *fp, struct commitinfo *ci) { - fprintf(fp, "<b>commit</b> <a href=\"%scommit/%s.html\">%s</a>\n", + fprintf(fp, "<strong>commit:</strong> <a href=\"%scommit/%s.html\">%s</a>\n", relpath, ci->oid, ci->oid); if (ci->parentoid[0]) - fprintf(fp, "<b>parent</b> <a href=\"%scommit/%s.html\">%s</a>\n", + fprintf(fp, "<strong>parent</strong> <a href=\"%scommit/%s.html\">%s</a>\n", relpath, ci->parentoid, ci->parentoid); if (ci->author) { - fputs("<b>Author:</b> ", fp); + fputs("<strong>Author: </strong>", fp); xmlencode(fp, ci->author->name, strlen(ci->author->name)); fputs(" &lt;<a href=\"mailto:", fp); xmlencode(fp, ci->author->email, strlen(ci->author->email)); fputs("\">", fp); xmlencode(fp, ci->author->email, strlen(ci->author->email)); - fputs("</a>&gt;\n<b>Date:</b> ", fp); + fputs("</a>&gt;\n<strong>Date:</strong> ", fp); printtime(fp, &(ci->author->when)); putc('\n', fp); } @@ -610,7 +610,7 @@ printshowfile(FILE *fp, struct commitinfo *ci) } /* diff stat */ - fputs("<b>Diffstat:</b>\n<table>", fp); + fputs("<h2>Diffstat:</h2>\n<table>", fp); for (i = 0; i < ci->ndeltas; i++) { delta = git_patch_get_delta(ci->deltas[i]->patch); @@ -665,7 +665,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, "<strong>diff --git a/<a id=\"h%zu\" href=\"%sfile/", i, relpath); xmlencode(fp, delta->old_file.path, strlen(delta->old_file.path)); fputs(".html\">", fp); xmlencode(fp, delta->old_file.path, strlen(delta->old_file.path)); @@ -673,7 +673,7 @@ printshowfile(FILE *fp, struct commitinfo *ci) xmlencode(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></b>\n"); + fprintf(fp, "</a></strong>\n"); /* check binary data */ if (delta->flags & GIT_DIFF_FLAG_BINARY) { @@ -1071,8 +1071,8 @@ writefiles(FILE *fp, const git_oid *id) int ret = -1; fputs("<table id=\"files\"><thead>\n<tr>" - "<td><b>Mode</b></td><td><b>Name</b></td>" - "<td class=\"num\" align=\"right\"><b>Size</b></td>" + "<td>Mode</td><td>Name</td>" + "<td class=\"num\" align=\"right\">Size</td>" "</tr>\n</thead><tbody>\n", fp); if (!git_commit_lookup(&commit, repo, id) && @@ -1111,9 +1111,9 @@ writerefs(FILE *fp) /* print header if it has an entry (first). */ if (++count == 1) { fprintf(fp, "<h2>%s</h2><table id=\"%s\">" - "<thead>\n<tr><td><b>Name</b></td>" - "<td><b>Last commit date</b></td>" - "<td><b>Author</b></td>\n</tr>\n" + "<thead>\n<tr><td>Name</td>" + "<td>Last commit date</td>" + "<td>Author</td>\n</tr>\n" "</thead><tbody>\n", titles[j], ids[j]); } @@ -1287,11 +1287,11 @@ main(int argc, char *argv[]) relpath = ""; mkdir("commit", S_IRWXU | S_IRWXG | S_IRWXO); writeheader(fp, "Log"); - fputs("<table id=\"log\"><thead>\n<tr><td><b>Date</b></td>" - "<td><b>Commit message</b></td>" - "<td><b>Author</b></td><td class=\"num\" align=\"right\"><b>Files</b></td>" - "<td class=\"num\" align=\"right\"><b>+</b></td>" - "<td class=\"num\" align=\"right\"><b>-</b></td></tr>\n</thead><tbody>\n", fp); + fputs("<table id=\"log\"><thead>\n<tr><td>Date</td>" + "<td>Commit message</td>" + "<td>Author</td><td class=\"num\" align=\"right\">Files</td>" + "<td class=\"num\" align=\"right\">+</td>" + "<td class=\"num\" align=\"right\">-</td></tr>\n</thead><tbody>\n", fp); if (cachefile && head) { /* read from cache file (does not need to exist) */