diff --git a/resources/elcode_english.html b/resources/elcode_english.html
index cee6a6ff..a35fe962 100755
--- a/resources/elcode_english.html
+++ b/resources/elcode_english.html
@@ -133,6 +133,16 @@ for example. In order to avoid interpretation of tags, one puts a backslash "\"
in front of the tag, like \[b] instead of [b].
+
Smileys, or Emoticons, are small graphical images which can be used to
diff --git a/src/elogd.c b/src/elogd.c
index 92166aca..c25b71cd 100755
--- a/src/elogd.c
+++ b/src/elogd.c
@@ -5770,6 +5770,9 @@ PATTERN_LIST pattern_list[] = {
/* horizontal line */
{"[line]", " "},
+ /* anchor */
+ {"[anchor]", ""},
+ {"[/anchor]", ""},
{"", ""}
};
@@ -5861,7 +5864,7 @@ void rsputs_elcode(LOGBOOK * lbs, BOOL email_notify, const char *str)
if (!isdigit(tmp[m]))
break;
- if (m < (int) strlen(tmp)) {
+ if (m < (int) strlen(tmp) && tmp[m] != '#') {
/* if link contains reference to other logbook, put logbook explicitly */
if (email_notify)
compose_base_url(NULL, base_url, sizeof(base_url));
@@ -6050,7 +6053,8 @@ void rsputs_elcode(LOGBOOK * lbs, BOOL email_notify, const char *str)
/* add http:// if missing */
else if (!strnieq(attrib, "http://", 7) &&
strstr(pattern_list[l].subst, "mailto") == NULL &&
- strstr(pattern_list[l].subst, "img") == NULL)
+ strstr(pattern_list[l].subst, "img") == NULL &&
+ strncmp(pattern_list[l].subst, " |