projects
/
forks
/
stagit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6eeefd2
)
ignore '\r' in writing the blob aswell
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Tue, 16 Nov 2021 13:24:30 +0000
(14:24 +0100)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Tue, 16 Nov 2021 13:24:30 +0000
(14:24 +0100)
Follow-up on commit
295e4b8cb95114bb74b582c7332bc4c171f36dd3
which changed it
for diffs.
stagit.c
patch
|
blob
|
history
diff --git
a/stagit.c
b/stagit.c
index 07d79293df7cf7489614b59491b80ef76213a39e..b9c0d373c93fc2661e7b1773ff2a34e4d816b025 100644
(file)
--- a/
stagit.c
+++ b/
stagit.c
@@
-562,14
+562,15
@@
writeblobhtml(FILE *fp, const git_blob *blob)
continue;
n++;
fprintf(fp, nfmt, n, n, n);
- xmlencode(fp, &s[prev], i - prev + 1);
+ xmlencodeline(fp, &s[prev], i - prev + 1);
+ putc('\n', fp);
prev = i + 1;
}
/* trailing data */
if ((len - prev) > 0) {
n++;
fprintf(fp, nfmt, n, n, n);
- xmlencode(fp, &s[prev], len - prev);
+ xmlencode
line
(fp, &s[prev], len - prev);
}
}