From e1b24b557d00407fb96755c34a8956afff56a51a Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 26 Sep 2026 08:38:40 -1000 Subject: Add stable markup hooks for site themes --- source/ui-ssdiff.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'source/ui-ssdiff.c') diff --git a/source/ui-ssdiff.c b/source/ui-ssdiff.c index ad543f4..afa25ea 100644 --- a/source/ui-ssdiff.c +++ b/source/ui-ssdiff.c @@ -201,7 +201,7 @@ static void print_row(const char *class, int old_line_no, char *old_line, } else if (old_line) { htmlf("", class); } else { - htmlf("", class); + htmlf("", class); } if (old_line) { if (lcs) @@ -217,7 +217,7 @@ static void print_row(const char *class, int old_line_no, char *old_line, } else if (new_line) { htmlf("", class); } else { - htmlf("", class); + htmlf("", class); } if (new_line) { if (lcs) @@ -401,10 +401,13 @@ void cgit_ssdiff_line_cb(char *line, int len) line[len - 1] = terminator; } -void cgit_ssdiff_header_begin(void) +void cgit_ssdiff_header_begin(const char *path) { current_old_line = -1; current_new_line = -1; + html("\n"); html("\n"); html(""); } @@ -417,5 +420,5 @@ void cgit_ssdiff_header_end(void) void cgit_ssdiff_footer(void) { print_deferred_lines(); - html("\n"); + html("\n\n"); } -- cgit v2.8.0