diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Tidy the structure of the generated markup
Diffstat (limited to '')
| -rw-r--r-- | source/ui-diff.c | 16 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 8 insertions, 8 deletions
diff --git a/source/ui-diff.c b/source/ui-diff.c index 4ac3673..d6232a3 100644 --- a/source/ui-diff.c +++ b/source/ui-diff.c @@ -468,8 +468,8 @@ static void print_diffstat(const struct object_id *old_oid, html_txt(prefix); html("')"); } - html("</div>"); - html("<table summary='diffstat' class='diffstat'>"); + html("</div>\n"); + html("<table class='diffstat'>\n"); max_changes = 0; cgit_diff_tree(old_oid, new_oid, inspect_filepair, prefix, ctx.qry.ignorews); @@ -719,11 +719,11 @@ void cgit_print_diff(const char *new_rev, const char *old_rev, return; } - html("<div class='diff-scroll'>"); + html("<div class='diff-scroll'>\n"); if (use_ssdiff) { - html("<table summary='ssdiff' class='ssdiff'>"); + html("<table class='ssdiff'>\n"); } else { - html("<table summary='diff' class='diff'>"); + html("<table class='diff'>\n"); html("<tr><td>"); } if (bodies_usable) { @@ -738,9 +738,9 @@ void cgit_print_diff(const char *new_rev, const char *old_rev, ctx.qry.ignorews); } if (!use_ssdiff) - html("</td></tr>"); - html("</table>"); - html("</div>"); + html("</td></tr>\n"); + html("</table>\n"); + html("</div>\n"); if (show_ctrls) cgit_print_layout_end(); |
