diff --git a/src/elogd.c b/src/elogd.c index 6eb1cbee..bc7aa195 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -8910,11 +8910,12 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL } else if (attr_flags[index] & AF_MULTI) { /* display multiple check boxes */ - rsprintf("\n", title); + rsprintf("\n", title); for (i = 0; i < MAX_N_LIST && attr_options[index][i][0]; i++) { sprintf(str, "%s_%d", ua, i); + rsprintf("\n"); if (strstr(attrib[index], attr_options[index][i])) rsprintf ("\n", @@ -8925,6 +8926,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL str, str, attr_options[index][i]); rsprintf("\n", str, attr_options[index][i]); + rsprintf("\n"); if (format_flags[index] & AFF_MULTI_LINE) rsprintf("
"); @@ -8942,30 +8944,31 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL } else if (attr_flags[index] & AF_RADIO) { /* display radio buttons */ rsprintf("\n", title); - rsprintf("\n"); for (i = 0; i < MAX_N_LIST && attr_options[index][i][0]; i++) { strlcpy(str, attr_options[index][i], sizeof(str)); if (strchr(str, '{')) *strchr(str, '{') = 0; + rsprintf("\n"); + if (strstr(attrib[index], attr_options[index][i]) || strieq(str, attrib[index])) rsprintf - ("\n"); + rsprintf("\n"); + if (format_flags[index] & AFF_MULTI_LINE) rsprintf("
"); } - rsprintf("
\n", + ("\n", str, ua, str); else rsprintf - ("\n", + ("\n", str, ua, str); rsprintf("\n", str, str); - rsprintf("
\n"); if (attr_flags[index] & AF_EXTENDABLE) { sprintf(str, loc("Add %s"), attr_list[index]); @@ -8978,17 +8981,17 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL } else if (attr_flags[index] & AF_ICON) { /* display icons */ - rsprintf("\n", title); + rsprintf("\n", title); rsprintf("\n"); for (i = 0; i < MAX_N_LIST && attr_options[index][i][0]; i++) { if (strstr(attrib[index], attr_options[index][i])) rsprintf - ("
", + ("", ua, attr_options[index][i]); else rsprintf - ("", + ("", ua, attr_options[index][i]); sprintf(str, "Icon comment %s", attr_options[index][i]);