git-query

git data extraction tool using c and libgit2

git clone https://9o.is/git/git-query.git

commit b50336cc6486ff6d029cf9646030fb72bde98d76
parent 0f7b3fe72b21bafbb3717e2d8ac0e79ab0ea7252
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon, 17 Apr 2017 13:39:05 +0200

stagit: fix rendering of first TAB in file

else TABs wont render properly (interpreted as part of HTML whitespace)
at the first TAB of the line.

Diffstat:
Mstagit.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stagit.c b/stagit.c @@ -379,7 +379,7 @@ int writeblobhtml(FILE *fp, const git_blob *blob) { size_t n = 0, i, prev; - const char *nfmt = "<a href=\"#l%d\" class=\"line\" id=\"l%d\">%6d</a> "; + const char *nfmt = "<a href=\"#l%d\" class=\"line\" id=\"l%d\">%6d</a> "; const char *s = git_blob_rawcontent(blob); git_off_t len = git_blob_rawsize(blob);