From 1c031dfb88f80c1b9dbd6fe4947b5cf92026caed Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 14 Aug 2026 11:32:19 -1000 Subject: Tidy the option panels --- source/ui-diff.c | 14 +++++++------- source/ui-stats.c | 16 ++++++++-------- 2 files changed, 15 insertions(+), 15 deletions(-) (limited to 'source') diff --git a/source/ui-diff.c b/source/ui-diff.c index 98bccfe..4ac3673 100644 --- a/source/ui-diff.c +++ b/source/ui-diff.c @@ -568,12 +568,12 @@ void cgit_print_diff_ctrls(void) { int i, selected; - html("
"); - html("diff options"); + html("
\n"); + html("diff options"); html("
"); cgit_add_hidden_formfields(1, 0, ctx.qry.page); html(""); - html(""); + html(""); html(""); html(""); html(""); - html("
context:"); @@ -604,11 +604,11 @@ void cgit_print_diff_ctrls(void) html_intoption(1, "ssdiff", selected); html_intoption(2, "stat only", selected); html("
"); - html(""); + html("
"); + html(""); html("
"); - html("
"); - html("
"); + html("\n"); + html("
\n"); } void cgit_print_diff(const char *new_rev, const char *old_rev, diff --git a/source/ui-stats.c b/source/ui-stats.c index 5436907..58bd818 100644 --- a/source/ui-stats.c +++ b/source/ui-stats.c @@ -529,11 +529,11 @@ static void print_options_form(const struct cgit_period *period, int top) { int choices, i; - html("
"); - html("stat options"); + html("
\n"); + html("stat options"); html("
"); cgit_add_hidden_formfields(1, 0, "stats"); - html(""); + html("
\n"); if (!ctx.repo->max_stats || ctx.repo->max_stats > 1) { choices = ctx.repo->max_stats ? ctx.repo->max_stats : (int)ARRAY_SIZE(periods); @@ -552,12 +552,12 @@ static void print_options_form(const struct cgit_period *period, int top) html_intoption(50, "50", top); html_intoption(100, "100", top); html_intoption(-1, "all", top); - html(""); - html("\n"); + html("
"); - html(""); + html("
"); + html(""); html("
"); - html("
"); - html("
"); + html("\n"); + html("
\n"); } int cgit_find_stats_period(const char *expr, const struct cgit_period **period) -- cgit v2.8.0