Remove hardcoded right-align
Dramatically reduces the filesize. There also was no reason to have the aligns. It now is even easier to read how many lines have changed in the commits and given the table doesn't expand itself over the size of its entries, we're cool anyway.
1 files changed, 8 insertions(+), 8 deletions(-) | |||
---|---|---|---|
M | urmoms.c | +8 | -8 |
1@@ -370,15 +370,15 @@ writelog(FILE *fp)
2 git_revwalk_push_head(w);
3
4 /* TODO: also make "expanded" log ? (with message body) */
5- fputs("<table><thead>\n<tr><td align=\"right\">Age</td><td>Commit message</td><td>Author</td>"
6- "<td align=\"right\">Files</td><td align=\"right\">+</td><td align=\"right\">-</td></tr>\n</thead><tbody>\n", fp);
7+ fputs("<table><thead>\n<tr><td>Age</td><td>Commit message</td><td>Author</td>"
8+ "<td>Files</td><td>+</td><td>-</td></tr>\n</thead><tbody>\n", fp);
9 while (!git_revwalk_next(&id, w)) {
10 relpath = "";
11
12 if (!(ci = commitinfo_getbyoid(&id)))
13 break;
14
15- fputs("<tr><td align=\"right\">", fp);
16+ fputs("<tr><td>", fp);
17 if (ci->author)
18 printtimeshort(fp, &(ci->author->when));
19 fputs("</td><td>", fp);
20@@ -395,11 +395,11 @@ writelog(FILE *fp)
21 fputs("</td><td>", fp);
22 if (ci->author)
23 xmlencode(fp, ci->author->name, strlen(ci->author->name));
24- fputs("</td><td align=\"right\">", fp);
25+ fputs("</td><td>", fp);
26 fprintf(fp, "%zu", ci->filecount);
27- fputs("</td><td align=\"right\">", fp);
28+ fputs("</td><td>", fp);
29 fprintf(fp, "+%zu", ci->addcount);
30- fputs("</td><td align=\"right\">", fp);
31+ fputs("</td><td>", fp);
32 fprintf(fp, "-%zu", ci->delcount);
33 fputs("</td></tr>\n", fp);
34
35@@ -512,7 +512,7 @@ writefiles(FILE *fp)
36 size_t count, i;
37
38 fputs("<table><thead>\n"
39- "<tr><td>Mode</td><td>Name</td><td align=\"right\">Size</td></tr>\n"
40+ "<tr><td>Mode</td><td>Name</td><td>Size</td></tr>\n"
41 "</thead><tbody>\n", fp);
42
43 git_repository_index(&index, repo);
44@@ -526,7 +526,7 @@ writefiles(FILE *fp)
45 xmlencode(fp, entry->path, strlen(entry->path));
46 fputs("\">", fp);
47 xmlencode(fp, entry->path, strlen(entry->path));
48- fputs("</a></td><td align=\"right\">", fp);
49+ fputs("</a></td><td>", fp);
50 fprintf(fp, "%" PRIu64, entry->file_size);
51 fputs("</td></tr>\n", fp);
52 }