stagit

fix newline after header

Hiltjo Posthuma contact@arjunchoudhary.com

commit: c999524 parent: 5fcd293
1 files changed, 1 insertions(+), 1 deletions(-)
Mstagit.c+1-1
M · stagit.c +1, -1
1@@ -410,7 +410,7 @@ printshowfile(struct commitinfo *ci)
2 				break;
3 
4 			fputs("<span class=\"h\">", fp);
5-			xmlencode(fp, hunk->header, strcspn(hunk->header, "\n"));
6+			xmlencode(fp, hunk->header, hunk->header_len);
7 			fputs("</span>", fp);
8 
9 			for (k = 0; ; k++) {