commit 51726ed5548957348fd50cb2037f891056aae39e
parent 91e8ca99304bc31af74219272c388b357be09c0c
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Sat, 4 Apr 2020 14:16:05 -0500
Remove redoundent class and align
Diffstat:
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/stagit.c b/stagit.c
@@ -694,11 +694,11 @@ writelogline(FILE *fp, struct commitinfo *ci)
fputs("</td><td>", fp);
if (ci->author)
xmlencode(fp, ci->author->name, strlen(ci->author->name));
- fputs("</td><td class=\"num\" align=\"right\">", fp);
+ fputs("</td><td class=\"num\">", fp);
fprintf(fp, "%zu", ci->filecount);
- fputs("</td><td class=\"num\" align=\"right\">", fp);
+ fputs("</td><td class=\"num\">", fp);
fprintf(fp, "+%zu", ci->addcount);
- fputs("</td><td class=\"num\" align=\"right\">", fp);
+ fputs("</td><td class=\"num\">", fp);
fprintf(fp, "-%zu", ci->delcount);
fputs("</td></tr>\n", fp);
}
@@ -1013,7 +1013,7 @@ writefilestree(FILE *fp, git_tree *tree, const char *path)
xmlencode(fp, filepath, strlen(filepath));
fputs("\">", fp);
xmlencode(fp, entrypath, strlen(entrypath));
- fputs("</a></td><td class=\"num\" align=\"right\">", fp);
+ fputs("</a></td><td class=\"num\">", fp);
if (lc > 0)
fprintf(fp, "%dL", lc);
else
@@ -1040,7 +1040,7 @@ writefiles(FILE *fp, const git_oid *id)
int ret = -1;
fputs("<table id=\"files\"><thead>\n<tr>"
- "<th>Mode</th><th>Name</th><th class=\"num\" align=\"right\">Size</th>"
+ "<th>Mode</th><th>Name</th><th>Size</th>"
"</tr>\n</thead><tbody>\n", fp);
if (!git_commit_lookup(&commit, repo, id) &&
@@ -1252,9 +1252,9 @@ main(int argc, char *argv[])
writeheader(fp, "Log");
fputs("<table id=\"log\"><thead>\n<tr><th>Date</th>"
"<th>Commit message</th>"
- "<th>Author</th><th class=\"num\" align=\"right\">Files</th>"
- "<th class=\"num\" align=\"right\">+</th>"
- "<th class=\"num\" align=\"right\">-</th></tr>\n</thead><tbody>\n", fp);
+ "<th>Author</th><th>Files</th>"
+ "<th>+</th>"
+ "<th>-</th></tr>\n</thead><tbody>\n", fp);
if (cachefile && head) {
/* read from cache file (does not need to exist) */