From 70f4782e6eeb9cf5e285a69404f7d5a388bb7682 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Fri, 9 Sep 2005 19:54:05 +0000 Subject: [PATCH] Fixed problem with 'list' command SVN revision: 1484 --- src/elogd.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index e0c84be3..cd5c1a07 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.749 2005/09/09 19:54:05 ritt + Fixed problem with 'list' command + Revision 1.748 2005/09/09 09:05:16 ritt Fixed problem with extendable attributes which are fixed during edit @@ -20204,10 +20207,17 @@ void show_elog_entry(LOGBOOK * lbs, char *dec_path, char *command) strcpy(str, loc(menu_item[i])); url_encode(str, sizeof(str)); - if (i < n - 1) - rsprintf(" %s |\n", message_id, str, loc(menu_item[i])); - else - rsprintf(" %s \n", message_id, str, loc(menu_item[i])); + if (i < n - 1) { + if (strieq(menu_item[i], "list")) + rsprintf(" %s |\n", loc(menu_item[i])); + else + rsprintf(" %s |\n", message_id, str, loc(menu_item[i])); + } else { + if (strieq(menu_item[i], "list")) + rsprintf(" %s \n", loc(menu_item[i])); + else + rsprintf(" %s \n", message_id, str, loc(menu_item[i])); + } } }