fix newline after header - stagit-gopher - A git gopher frontend. (mirror) | |
git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2h… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit 200ccad8b566c3705f3d3e5dd7d5456be85e6900 | |
parent 444e41b315925181f3ead6f2c3dd1354475e90e3 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Tue, 5 Jan 2016 21:03:39 +0100 | |
fix newline after header | |
Diffstat: | |
M stagit.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/stagit.c b/stagit.c | |
@@ -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++) { |