commit: 435821cb220e2ce62b78c89a1254de3bb5e9dd3d
parent 49dd34b538ab0c6791fbeaee3a05f4782a4748a3
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 6 Jun 2024 06:51:19 +0200
stagit.c: Use <th> within <thead>
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/stagit.c b/stagit.c
@@ -1119,8 +1119,8 @@ writefiles(FILE *fp, const git_oid *id)
int ret = -1;
fputs("<table class=\"sortable\" id=\"files\"><thead>\n<tr>"
- "<td>Mode</td><td>Name</td>"
- "<td class=\"num\" align=\"right\">Size</td>"
+ "<th>Mode</th><th>Name</th>"
+ "<th class=\"num\" align=\"right\">Size</th>"
"</tr>\n</thead><tbody>\n", fp);
if (!git_commit_lookup(&commit, repo, id) &&
@@ -1159,9 +1159,9 @@ writerefs(FILE *fp)
/* print header if it has an entry (first). */
if (++count == 1) {
fprintf(fp, "<h2>%s</h2><table class=\"sortable\" id=\"%s\">"
- "<thead>\n<tr><td>Name</td>"
- "<td>Last commit date</td>"
- "<td>Author</td>\n</tr>\n"
+ "<thead>\n<tr><th>Name</th>"
+ "<th>Last commit date</th>"
+ "<th>Author</th>\n</tr>\n"
"</thead><tbody>\n",
titles[j], ids[j]);
}