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 'source/ui-ssdiff.c')
| -rw-r--r-- | source/ui-ssdiff.c | 10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 5 insertions, 5 deletions
diff --git a/source/ui-ssdiff.c b/source/ui-ssdiff.c index 7f3d194..8651ce7 100644 --- a/source/ui-ssdiff.c +++ b/source/ui-ssdiff.c @@ -240,7 +240,7 @@ static void print_row(const char *class, html_txt(new_line); } - html("</td></tr>"); + html("</td></tr>\n"); free(lcs); free(new_line); free(old_line); @@ -414,11 +414,11 @@ void cgit_ssdiff_line_cb(char *line, int len) } else if (line[0] == '@') { html("<tr><td colspan='4' class='hunk'>"); html_txt(line); - html("</td></tr>"); + html("</td></tr>\n"); } else { html("<tr><td colspan='4' class='ctx'>"); html_txt(line); - html("</td></tr>"); + html("</td></tr>\n"); } line[len - 1] = terminator; } @@ -433,12 +433,12 @@ void cgit_ssdiff_header_begin(void) void cgit_ssdiff_header_end(void) { - html("</td></tr>"); + html("</td></tr>\n"); } void cgit_ssdiff_footer(void) { if (deferred_old || deferred_new) print_deferred_lines(); - html("<tr><td class='foot' colspan='4'></td></tr>"); + html("<tr><td class='foot' colspan='4'></td></tr>\n"); } |
