mirror of
git://git.codemadness.org/stagit
synced 2025-03-09 09:09:12 -04:00
make hunk line itself a link
This commit is contained in:
parent
99a8b8a296
commit
a6b29cbbd9
4
stagit.c
4
stagit.c
@ -409,9 +409,9 @@ printshowfile(struct commitinfo *ci)
|
||||
if (git_patch_get_hunk(&hunk, &nhunklines, patch, j))
|
||||
break;
|
||||
|
||||
fputs("<span class=\"h\">", fp);
|
||||
fprintf(fp, "<a href=\"#h%zu\" id=\"h%zu\" class=\"h\">", j, j);
|
||||
xmlencode(fp, hunk->header, hunk->header_len);
|
||||
fputs("</span>", fp);
|
||||
fputs("</a>", fp);
|
||||
|
||||
for (k = 0; ; k++) {
|
||||
if (git_patch_get_line_in_hunk(&line, patch, j, k))
|
||||
|
Loading…
x
Reference in New Issue
Block a user