From a414deb2784fe214f52b93f46234a04be61d6087 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 9 May 2007 20:49:58 +0000 Subject: [PATCH] Added conversion of “ and ” to ordinary ASCII double-quotes in html.c --- citadel/html.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/citadel/html.c b/citadel/html.c index 3964dade2..c0359a6a7 100644 --- a/citadel/html.c +++ b/citadel/html.c @@ -418,6 +418,16 @@ char *html_to_ascii(char *inputmsg, int msglen, int screenwidth, int do_citaform strcpy(&outbuf[i+1], &outbuf[i+8]); } + else if (!strncasecmp(&outbuf[i], "“", 7)) { + outbuf[i] = '\"'; + strcpy(&outbuf[i+1], &outbuf[i+7]); + } + + else if (!strncasecmp(&outbuf[i], "”", 7)) { + outbuf[i] = '\"'; + strcpy(&outbuf[i+1], &outbuf[i+7]); + } + /* two-digit decimal equivalents */ else if ((!strncmp(&outbuf[i], "&#", 2)) && (outbuf[i+4] == ';') ) { -- 2.39.2