diff --git a/src/elogd.c b/src/elogd.c
index 3fc9996f..47480e84 100755
--- a/src/elogd.c
+++ b/src/elogd.c
@@ -6,6 +6,9 @@
Contents: Web server program for Electronic Logbook ELOG
$Log$
+ Revision 1.694 2005/07/05 20:00:43 ritt
+ Removed wrong '&'
+
Revision 1.693 2005/07/05 19:06:27 ritt
Use
| ", colspan);
if (attachment[1][0])
@@ -15304,7 +15328,13 @@ void display_line(LOGBOOK * lbs, int message_id, int number, char *mode,
}
for (index = 0; index < MAX_ATTACHMENTS; index++) {
- if (attachment[index][0]) {
+ if (show_attachments && attachment[index][0]) {
+
+ /* check if attachment is inlined */
+ sprintf(str, "[img]elog:/%d[/img]", index + 1);
+ if (strieq(encoding, "ELCode") && stristr(text, str))
+ continue;
+
strcpy(str, attachment[index]);
str[13] = 0;
sprintf(ref, "../%s/%s/%s", lbs->name, str, attachment[index] + 14);
@@ -15380,7 +15410,7 @@ void display_line(LOGBOOK * lbs, int message_id, int number, char *mode,
}
}
- if (!show_attachments && attachment[0][0])
+ if (n_attachments)
rsprintf(" |
\n");
}
@@ -17287,7 +17317,9 @@ void show_elog_list(LOGBOOK * lbs, INT past_n, INT last_n, INT page_n, char *inf
/* store current command line as hidden parameter for page navigation */
if (str[0] && !strieq(str, "?")) {
- rsprintf("