mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Show error "File not found" on "Preset text" only if text is a file
SVN revision: 2447
This commit is contained in:
parent
5930d90292
commit
722d8ce55e
13
src/elogd.c
13
src/elogd.c
@ -11132,9 +11132,16 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
||||
strsubst_list(str, sizeof(str), slist, svalue, j);
|
||||
while (strstr(str, "\\n"))
|
||||
memcpy(strstr(str, "\\n"), "\r\n", 2);
|
||||
rsputs("File <i>");
|
||||
rsputs3(str);
|
||||
rsputs("</i> cannot be found");
|
||||
|
||||
if (strchr(str, ' ')) {
|
||||
/* name contains blanks -> must be text */
|
||||
rsputs3(str);
|
||||
} else {
|
||||
/* name is probably a file -> show error */
|
||||
rsputs("File <i>");
|
||||
rsputs3(str);
|
||||
rsputs("</i> cannot be found");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user