commit 7bbbd63788e16744e5494ddb021ba9d1659bc7b9
parent fcd56021e524747af0db27cb565d7be2c541a661
Author: gearsix <gearsix@tuta.io>
Date: Sat, 17 May 2025 14:58:53 +0100
changed numbered file line padding from 7->4
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/README b/README
@@ -32,6 +32,7 @@ stagit.c
- added #logo id to td displaying logo
- added "forked from ..." in description (if repo is fork)
- added index.html for repo pages that redirect to ./log.html
+ - numbered file lines have 4 spaces padding instead of 7.
misc
diff --git a/stagit.c b/stagit.c
@@ -574,7 +574,7 @@ size_t
writeblobhtml(FILE *fp, const char *filename, size_t filesize, const git_blob *blob)
{
size_t n = 0, i, len, prev;
- const char *nfmt = "<a href=\"#l%zu\" class=\"line\" id=\"l%zu\">%7zu</a> ";
+ const char *nfmt = "<a href=\"#l%zu\" class=\"line\" id=\"l%zu\">%4zu</a> ";
const char *s = git_blob_rawcontent(blob);
writeheader(fp, filename);