diff options
author | Hiltjo Posthuma <[email protected]> | 2021-11-16 14:24:30 +0100 |
---|---|---|
committer | Hiltjo Posthuma <[email protected]> | 2021-11-16 14:24:30 +0100 |
commit | 5f78d89d591ad26b902947288625b90528954372 (patch) | |
tree | c396ed59872b2bc158bb4570d9a6ff9049a86ffe | |
parent | 6eeefd208743b0b2edbd7330dea36eea5b1099b7 (diff) | |
download | stagit-5f78d89d591ad26b902947288625b90528954372.tar.gz stagit-5f78d89d591ad26b902947288625b90528954372.zip |
ignore '\r' in writing the blob aswell
Follow-up on commit 295e4b8cb95114bb74b582c7332bc4c171f36dd3 which changed it
for diffs.
-rw-r--r-- | stagit.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); } } |