commit: c20a0e1855ff30f8b4d21a740de05eefd9f041cb
parent 50535ce6876666e1c877d9a6f0bd05d5318c163e
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 31 Jul 2017 09:02:10 +0200
stagit.c: Avoid stylistic use of <b>
Diffstat:
M | stagit.c | 32 | ++++++++++++++++---------------- |
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/stagit.c b/stagit.c
@@ -595,21 +595,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(" <<a href=\"mailto:", fp);
xmlencode(fp, ci->author->email, strlen(ci->author->email)); /* not percent-encoded */
fputs("\">", fp);
xmlencode(fp, ci->author->email, strlen(ci->author->email));
- fputs("</a>>\n<b>Date:</b> ", fp);
+ fputs("</a>>\n<strong>Date:</strong> ", fp);
printtime(fp, &(ci->author->when));
putc('\n', fp);
}
@@ -645,7 +645,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);
@@ -708,7 +708,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></b>\n");
+ fprintf(fp, "</a></strong>\n");
/* check binary data */
if (delta->flags & GIT_DIFF_FLAG_BINARY) {
@@ -1111,8 +1111,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) &&
@@ -1151,9 +1151,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]);
}
@@ -1335,11 +1335,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) */