mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Set current encoding to ELCode if 'allowed encoding = 3'
SVN revision: 1998
This commit is contained in:
parent
cbc4eed422
commit
f7aa2d859f
@ -9013,12 +9013,14 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
else
|
else
|
||||||
allowed_encoding = 7;
|
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;
|
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;
|
enc_selected = 1;
|
||||||
|
else if (allowed_encoding == 3) /* select ELCode if only plain and ELCode allowed */
|
||||||
|
enc_selected = 0;
|
||||||
|
|
||||||
/* Overwrite from config file */
|
/* Overwrite from config file */
|
||||||
if (getcfg(lbs->name, "Default Encoding", str, sizeof(str)))
|
if (getcfg(lbs->name, "Default Encoding", str, sizeof(str)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user