diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/ui-ssdiff.c6
1 file changed, 3 insertions, 3 deletions
diff --git a/source/ui-ssdiff.c b/source/ui-ssdiff.c
index a58766a..7f3d194 100644
--- a/source/ui-ssdiff.c
+++ b/source/ui-ssdiff.c
@@ -181,8 +181,8 @@ static void print_lineno_cell(struct diff_filespec *file,
anchor = cgit_fmt("n%d", line_no);
rev_hex = is_null_oid(&file->oid) ? "HEAD" : oid_to_hex(rev);
query = cgit_fmt("id=%s#%s", rev_hex, anchor);
- // The path is repository content, so percent-encode it before it lands
- // raw in the href.
+ // The path is repository content, so percent-encode it so that the url
+ // stays a url whatever bytes the path holds.
if (file->path)
strbuf_add_percentencode(&path, file->path, 0);
fileurl = cgit_fileurl(ctx.repo->url, "tree", path.buf, query);
@@ -427,7 +427,7 @@ void cgit_ssdiff_header_begin(void)
{
current_old_line = -1;
current_new_line = -1;
- html("<tr><td class='space' colspan='4'><div></div></td></tr>");
+ html("<tr><td class='space' colspan='4'></td></tr>\n");
html("<tr><td class='head' colspan='4'>");
}