From 2aa0e2421b5c3e88246ed0aa27fa38fff9bcc7ac Mon Sep 17 00:00:00 2001 From: FRIGN Date: Tue, 8 Dec 2015 00:34:32 +0100 Subject: [PATCH] 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. --- urmoms.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/urmoms.c b/urmoms.c index 8bccb8b..3eb8471 100644 --- a/urmoms.c +++ b/urmoms.c @@ -370,15 +370,15 @@ writelog(FILE *fp) git_revwalk_push_head(w); /* TODO: also make "expanded" log ? (with message body) */ - fputs("\n" - "\n\n", fp); + fputs("
AgeCommit messageAuthorFiles+-
\n" + "\n\n", fp); while (!git_revwalk_next(&id, w)) { relpath = ""; if (!(ci = commitinfo_getbyoid(&id))) break; - fputs("\n", fp); @@ -512,7 +512,7 @@ writefiles(FILE *fp) size_t count, i; fputs("
AgeCommit messageAuthorFiles+-
", fp); + fputs("
", fp); if (ci->author) printtimeshort(fp, &(ci->author->when)); fputs("", fp); @@ -395,11 +395,11 @@ writelog(FILE *fp) fputs("", fp); if (ci->author) xmlencode(fp, ci->author->name, strlen(ci->author->name)); - fputs("", fp); + fputs("", fp); fprintf(fp, "%zu", ci->filecount); - fputs("", fp); + fputs("", fp); fprintf(fp, "+%zu", ci->addcount); - fputs("", fp); + fputs("", fp); fprintf(fp, "-%zu", ci->delcount); fputs("
\n" - "\n" + "\n" "\n", fp); git_repository_index(&index, repo); @@ -526,7 +526,7 @@ writefiles(FILE *fp) xmlencode(fp, entry->path, strlen(entry->path)); fputs("\">", fp); xmlencode(fp, entry->path, strlen(entry->path)); - fputs("\n", fp); } -- 2.39.2
ModeNameSize
ModeNameSize
", fp); + fputs("", fp); fprintf(fp, "%" PRIu64, entry->file_size); fputs("