From 8a1015ca8a010f8c42dcd5cf48ce3b6d5ff0886f Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Mon, 3 Jun 2002 08:30:44 +0000 Subject: [PATCH] Add
for replies in HTML format SVN revision: 67 --- elogd.c | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/elogd.c b/elogd.c index 3afa8d63..40c25471 100755 --- a/elogd.c +++ b/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.29 2002/06/03 08:30:44 midas + Add
for replies in HTML format + Revision 1.28 2002/06/03 08:12:24 midas Reversed setuid() and creation of elogd.pid @@ -3743,14 +3746,23 @@ time_t now; if (strchr(p, '\r')) { *strchr(p, '\r') = 0; - rsprintf("> %s\n", p); + + if (encoding[0] == 'H') + rsprintf("> %s
\n", p); + else + rsprintf("> %s\n", p); + p += strlen(p)+1; if (*p == '\n') p++; } else { - rsprintf("> %s\n\n", p); + if (encoding[0] == 'H') + rsprintf("> %s

\n", p); + else + rsprintf("> %s\n\n", p); + break; } @@ -3783,7 +3795,7 @@ time_t now; rsprintf("
\n"); /* HTML check box */ - if (bedit) + if (path) { if (encoding[0] == 'H') rsprintf("%s\n", loc("Submit as HTML text")); @@ -6506,9 +6518,9 @@ FILE *f; rsprintf("\n", gt("Frame color")); if (*gt("BGTimage")) - rsprintf("

\n", gt("BGTimage"), gt("Text BGColor")); + rsprintf("
\n", gt("BGTimage"), gt("Text BGColor")); else - rsprintf("

\n", gt("Text BGColor")); + rsprintf("
\n", gt("Text BGColor")); if (equal_ustring(encoding, "plain")) {