stagit

ignore '\r' in writing the blob aswell

Follow-up on commit 295e4b8cb95114bb74b582c7332bc4c171f36dd3 which changed it
for diffs.

Hiltjo Posthuma contact@arjunchoudhary.com

commit: cbd3f4d parent: 21478cb
1 files changed, 3 insertions(+), 2 deletions(-)
Mstagit.c+3-2
M · stagit.c +3, -2
 1@@ -562,14 +562,15 @@ writeblobhtml(FILE *fp, const git_blob *blob)
 2 				continue;
 3 			n++;
 4 			fprintf(fp, nfmt, n, n, n);
 5-			xmlencode(fp, &s[prev], i - prev + 1);
 6+			xmlencodeline(fp, &s[prev], i - prev + 1);
 7+			putc('\n', fp);
 8 			prev = i + 1;
 9 		}
10 		/* trailing data */
11 		if ((len - prev) > 0) {
12 			n++;
13 			fprintf(fp, nfmt, n, n, n);
14-			xmlencode(fp, &s[prev], len - prev);
15+			xmlencodeline(fp, &s[prev], len - prev);
16 		}
17 	}
18