stagit

static git repository generator

git clone https://9o.is/git/stagit.git

commit 7590df1670d3e9d5af5ea38094d7931b846bcd68
parent 4978111c68038b6fbde058ddd0a490e38931b82d
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue, 16 Nov 2021 14:24:30 +0100

ignore '\r' in writing the blob aswell

Follow-up on commit 54ae69b01ad335ec12f7bfd6f3adfb47d6c634c5 which changed it
for diffs.

Diffstat:
Mstagit.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 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); + xmlencodeline(fp, &s[prev], len - prev); } }