From f7aa2d859f3a6020cf1512188cab2dae01e1dd82 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Mon, 14 Jan 2008 11:01:38 +0000 Subject: [PATCH] Set current encoding to ELCode if 'allowed encoding = 3' SVN revision: 1998 --- src/elogd.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index e591a3c6..0ca52ac0 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -9013,12 +9013,14 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL else allowed_encoding = 7; - enc_selected = 2; /* Default is HTML */ + enc_selected = 2; /* Default is HTML */ - if (allowed_encoding == 2) /* select ELCode if the only one allowed */ + if (allowed_encoding == 2) /* select ELCode if the only one allowed */ enc_selected = 0; - else if (allowed_encoding == 1) /* select plain if the only one allowed */ + else if (allowed_encoding == 1) /* select plain if the only one allowed */ enc_selected = 1; + else if (allowed_encoding == 3) /* select ELCode if only plain and ELCode allowed */ + enc_selected = 0; /* Overwrite from config file */ if (getcfg(lbs->name, "Default Encoding", str, sizeof(str)))