diff --git a/src/elogd.c b/src/elogd.c index 4960f2de..42b9cb57 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -14024,14 +14024,16 @@ void show_config_page(LOGBOOK * lbs) if (n > 0) { for (i = 0; lb_list[i].name[0]; i++) {} j = (int) (i / 16) + 1; - cols = ((j>5)?5:j); - rsprintf("%s:\n", loc("Subscribe to logbooks")); + cols = ((j>5) ? 5 : j); + rsprintf("
%s:\n", loc("Subscribe to logbooks")); rsprintf("
(%s)\n", loc("enable automatic email notifications")); - rsprintf("\n"); + rsprintf("\n"); + rsprintf("\n"); + for (j = i = 0; lb_list[i].name[0]; i++) { if (!getcfg_topgroup() || strieq(getcfg_topgroup(), lb_list[i].top_group)) { @@ -14041,7 +14043,6 @@ void show_config_page(LOGBOOK * lbs) /* check if emails are enabled for this logbook */ if (!getcfg(lb_list[i].name, "Suppress email to users", str, sizeof(str)) || atoi(str) == 0) { - if (j==0) rsprintf("
"); if (email_notify[i]) rsprintf("\n"); + if (j>0 && (j%cols) == 0) + rsprintf("\n"); } - rsprintf("
\n", i, i); @@ -14052,9 +14053,10 @@ void show_config_page(LOGBOOK * lbs) } } } - if ((j%cols)==0) rsprintf("
\n"); + rsprintf("
\n"); } if (n > 2) {