]> git.armaanb.net Git - stagit.git/commitdiff
stagit: fix rendering of first TAB in file
authorHiltjo Posthuma <hiltjo@codemadness.org>
Mon, 17 Apr 2017 11:39:05 +0000 (13:39 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Mon, 17 Apr 2017 11:39:05 +0000 (13:39 +0200)
else TABs wont render properly (interpreted as part of HTML whitespace)
at the first TAB of the line.

stagit.c

index f438a02292f31ad8badeb9e790a972fe2d817adb..ca70214706f6cf1c65da3900154da07a222898cb 100644 (file)
--- 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);