ignore '\r' in writing the blob aswell
Follow-up on commit 295e4b8cb9
which changed it
for diffs.
This commit is contained in:
parent
6eeefd2087
commit
5f78d89d59
1 changed files with 3 additions and 2 deletions
5
stagit.c
5
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue