projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
75c253d
)
html_to_ascii() - removed display of italics like /this/, bold like *this*, and under...
author
Art Cancro
<ajc@citadel.org>
Mon, 24 Sep 2018 19:12:41 +0000
(15:12 -0400)
committer
Art Cancro
<ajc@citadel.org>
Mon, 24 Sep 2018 19:12:41 +0000
(15:12 -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 9298dd6c7706bc5c071f277924c4a4df53175a37..5ea1e2756623e57c362c6a12b3dcd331b906d36b 100644
(file)
--- a/
libcitadel/lib/html_to_ascii.c
+++ b/
libcitadel/lib/html_to_ascii.c
@@
-197,6
+197,9
@@
char *html_to_ascii(const char *inputmsg, int msglen, int screenwidth) {
strcat(outbuf, nl);
}
strcat(outbuf, nl);
}
+/****
+ These seemed like a good idea at the time, but it just makes a mess.
+
else if (
(!strcasecmp(tag, "B"))
|| (!strcasecmp(tag, "/B"))
else if (
(!strcasecmp(tag, "B"))
|| (!strcasecmp(tag, "/B"))
@@
-204,7
+207,6
@@
char *html_to_ascii(const char *inputmsg, int msglen, int screenwidth) {
|| (!strcasecmp(tag, "/STRONG"))
) {
strcat(outbuf, "*");
|| (!strcasecmp(tag, "/STRONG"))
) {
strcat(outbuf, "*");
-
}
else if (
}
else if (
@@
-214,7
+216,6
@@
char *html_to_ascii(const char *inputmsg, int msglen, int screenwidth) {
|| (!strcasecmp(tag, "/EM"))
) {
strcat(outbuf, "/");
|| (!strcasecmp(tag, "/EM"))
) {
strcat(outbuf, "/");
-
}
else if (
}
else if (
@@
-222,8
+223,8
@@
char *html_to_ascii(const char *inputmsg, int msglen, int screenwidth) {
|| (!strcasecmp(tag, "/U"))
) {
strcat(outbuf, "_");
|| (!strcasecmp(tag, "/U"))
) {
strcat(outbuf, "_");
-
}
}
+****/
else if (!strcasecmp(tag, "BR")) {
strcat(outbuf, nl);
else if (!strcasecmp(tag, "BR")) {
strcat(outbuf, nl);