summaryrefslogtreecommitdiff
path: root/urmoms.c
diff options
context:
space:
mode:
authorEivind Uggedal <eivind@uggedal.com>2015-12-09 09:43:20 +0000
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-12-09 22:15:25 +0100
commitb634cfd86042f303dae68c2805810c7a0f9614c5 (patch)
tree36f5249b05f2e3f3a7bda71d6520fcd81b8088d3 /urmoms.c
parent1363b8b51e4e2e75e56cdc022eb1ab50d15dd84d (diff)
Simplify diff markup
Remove <span> for inserted/deleted lines and use the <a> for coloring.
Diffstat (limited to 'urmoms.c')
-rw-r--r--urmoms.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/urmoms.c b/urmoms.c
index 01aebb1..8167d0f 100644
--- a/urmoms.c
+++ b/urmoms.c
@@ -333,16 +333,16 @@ printshowfile(struct commitinfo *ci)
if (git_patch_get_line_in_hunk(&line, patch, j, k))
break;
if (line->old_lineno == -1)
- fprintf(fp, "<span class=\"i\"><a href=\"#h%zu-%zu\" id=\"h%zu-%zu\">+",
+ fprintf(fp, "<a href=\"#h%zu-%zu\" id=\"h%zu-%zu\" class=\"i\">+",
j, k, j, k);
else if (line->new_lineno == -1)
- fprintf(fp, "<span class=\"d\"><a href=\"#h%zu-%zu\" id=\"h%zu-%zu\">-",
+ fprintf(fp, "<a href=\"#h%zu-%zu\" id=\"h%zu-%zu\" class=\"d\">-",
j, k, j, k);
else
fputc(' ', fp);
xmlencode(fp, line->content, line->content_len);
if (line->old_lineno == -1 || line->new_lineno == -1)
- fputs("</a></span>", fp);
+ fputs("</a>", fp);
}
}
git_patch_free(patch);