From eb7ece180379858f1d98af0d876f0453eb2ee058 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Wed, 14 Mar 2012 15:03:40 +0000 Subject: [PATCH] Strip html only for html encoded entries SVN revision: 2442 --- src/elogd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index 4a28a5b5..5ccac7d9 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -17514,7 +17514,8 @@ void display_line(LOGBOOK * lbs, int message_id, int number, char *mode, int exp /* only show text, not to rip apart HTML documents, e.g. only the start of a table */ - strip_html(str); + if (strieq(encoding, "HTML")) + strip_html(str); if (str[0]) strencode_nouml(str); else @@ -17565,7 +17566,8 @@ void display_line(LOGBOOK * lbs, int message_id, int number, char *mode, int exp /* only show text, not to rip apart HTML documents, e.g. only the start of a table */ - strip_html(str); + if (strieq(encoding, "HTML")) + strip_html(str); if (str[0]) strencode_nouml(str); else