From 9943065ccb6532511b0c861d30fe77e8fed43a7f Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 14 Aug 2026 12:09:44 -1000 Subject: Tidy the structure of the generated markup --- source/ui-ssdiff.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/ui-ssdiff.c') 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(""); + html("\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(""); html_txt(line); - html(""); + html("\n"); } else { html(""); html_txt(line); - html(""); + html("\n"); } line[len - 1] = terminator; } @@ -433,12 +433,12 @@ void cgit_ssdiff_header_begin(void) void cgit_ssdiff_header_end(void) { - html(""); + html("\n"); } void cgit_ssdiff_footer(void) { if (deferred_old || deferred_new) print_deferred_lines(); - html(""); + html("\n"); } -- cgit v2.8.0