diff --git a/doc/config.html b/doc/config.html index 5756937b..c4022d3d 100755 --- a/doc/config.html +++ b/doc/config.html @@ -1082,41 +1082,6 @@ Preset Author = $long_name attribute which has an options list, the preset value is selected in the drop down box by default.

- A special option are automatically generated tags, which are - automatically incremented for each new message. This is achieved by - putting #'s into the preset string, which is used as a placeholder for - the incrementing index. Each "#" stands for one digit, thus the - statement -
-Preset Number = XYZ-#####
-
results in automatically created attributes "Number" of the form -
-XYZ-00001
-XYZ-00002
-XYZ-00003
-
and so on. In addition to the #'s one may specify format specifiers which -are passed to the - strftime function. This allows to create tags wich contain the - current year, month and so on. Once the date part of the attribute - changes, the index restarts from one. The statement -
-Preset Number = XYZ-%Y-%b-###
-
results in automatically created attributes "Number" of the form -
-XYZ-2005-Oct-001
-XYZ-2005-Oct-002
-XYZ-2005-Oct-003
-
-

- and -

-
-XYZ-2005-Nov-001
-XYZ-2005-Nov-002
-
-

- on the next month. -

  • Preset text = <string> or <file>
    @@ -1362,6 +1327,40 @@ Subst Author = $author from $remote_host Subst Info = $shell(cat /tmp/filename) (Unix) Subst Info = $shell(type c:\tmp\filename) (Windows) +
    + A special option are automatically generated tags, which are + automatically incremented for each new message. This is achieved by + putting #'s into the substitution string, which is used as a placeholder for + the incrementing index. Each "#" stands for one digit, thus the + statement +
    +Subst Number = XYZ-#####
    +
    results in automatically created attributes "Number" of the form +
    +XYZ-00001
    +XYZ-00002
    +XYZ-00003
    +
    and so on. In addition to the #'s one may specify format specifiers which +are passed to the + strftime function. This allows to create tags wich contain the + current year, month and so on. Once the date part of the attribute + changes, the index restarts from one. The statement +
    +Subst Number = XYZ-%Y-%b-###
    +
    results in automatically created attributes "Number" of the form +
    +XYZ-2005-Oct-001
    +XYZ-2005-Oct-002
    +XYZ-2005-Oct-003
    +
    + and +
    +
    +XYZ-2005-Nov-001
    +XYZ-2005-Nov-002
    +
    + on the next month. +
  • Remove on reply = <list>
    diff --git a/src/elogd.c b/src/elogd.c index 7d49abee..7a71109b 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -21920,7 +21920,7 @@ void submit_elog(LOGBOOK * lbs) if (getcfg(lbs->name, str, subst_str, sizeof(subst_str))) { strsubst_list(subst_str, sizeof(subst_str), slist, svalue, n); - /* check for index substitution */ + /* check for index substitution if not in edit mode */ if (!bedit && strchr(subst_str, '#')) { /* get index */ get_auto_index(lbs, i, subst_str, str, sizeof(str));