fix newline after header

This commit is contained in:
Hiltjo Posthuma 2016-01-05 21:03:39 +01:00
parent 444e41b315
commit 200ccad8b5

View file

@ -410,7 +410,7 @@ printshowfile(struct commitinfo *ci)
break;
fputs("<span class=\"h\">", fp);
xmlencode(fp, hunk->header, strcspn(hunk->header, "\n"));
xmlencode(fp, hunk->header, hunk->header_len);
fputs("</span>", fp);
for (k = 0; ; k++) {