summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2017-04-17 13:39:05 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2017-04-17 13:39:05 +0200
commit394d90b7bb878b54173a08bfe31402ddd29a2a54 (patch)
treea05a0e5bf71e798d713c151687b9bceea74d7ddc
parent99583eee62af43c0504bfc2aab6058b69a46313b (diff)
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.
-rw-r--r--stagit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stagit.c b/stagit.c
index f438a02..ca70214 100644
--- 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);