stagit

My fork of stagit

git clone git://git.shimmy1996.com/stagit.git
commit d584ed15417f1e0c0d8e3be53d3b6e929b116b81
parent eb0c90bc08e5f53f74ef0ede5592c96ee35dc0d4
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Sat,  4 Apr 2020 14:16:05 -0500

Remove redoundent class and align

Diffstat:
Mstagit.c | 18+++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/stagit.c b/stagit.c
@@ -588,11 +588,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);
 }
@@ -888,7 +888,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
@@ -900,7 +900,7 @@ writefilestree(FILE *fp, git_tree *tree, const char *path)
 				relpath);
 			xmlencode(fp, entrypath, strlen(entrypath));
 			git_submodule_free(module);
-			fputs("</a></td><td class=\"num\" align=\"right\"></td></tr>\n", fp);
+			fputs("</a></td><td class=\"num\"></td></tr>\n", fp);
 		}
 	}
 
@@ -915,7 +915,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) &&
@@ -1184,9 +1184,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) */