projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0ca1d79
)
Added a couple more entity declarations
author
Art Cancro
<ajc@uncensored.citadel.org>
Fri, 9 Sep 2011 17:04:25 +0000
(13:04 -0400)
committer
Art Cancro
<ajc@uncensored.citadel.org>
Fri, 9 Sep 2011 17:04:25 +0000
(13:04 -0400)
libcitadel/lib/html_to_ascii.c
patch
|
blob
|
history
diff --git
a/libcitadel/lib/html_to_ascii.c
b/libcitadel/lib/html_to_ascii.c
index faa343710c1c19556b67cabd9be578e65dc38f78..6e4600ab19169317949538f7295e0404a4807268 100644
(file)
--- a/
libcitadel/lib/html_to_ascii.c
+++ b/
libcitadel/lib/html_to_ascii.c
@@
-469,6
+469,16
@@
char *html_to_ascii(const char *inputmsg, int msglen, int screenwidth, int do_ci
strcpy(&outbuf[i+1], &outbuf[i+7]);
}
strcpy(&outbuf[i+1], &outbuf[i+7]);
}
+ 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 (outbuf[i] == '&' &&
outbuf[i + 1] == '#' &&
/* two-digit decimal equivalents */
else if (outbuf[i] == '&' &&
outbuf[i + 1] == '#' &&
@@
-508,7
+518,7
@@
char *html_to_ascii(const char *inputmsg, int msglen, int screenwidth, int do_ci
scanch = 0;
sscanf(&outbuf[i+2], "%04d", &scanch);
outbuf[i] = scanch;
scanch = 0;
sscanf(&outbuf[i+2], "%04d", &scanch);
outbuf[i] = scanch;
- strcpy(&outbuf[i+1], &outbuf[i+
6
]);
+ strcpy(&outbuf[i+1], &outbuf[i+
7
]);
}
}
}
}