projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Suppress output of inline HTML styles when converting to plain text
[citadel.git]
/
libcitadel
/
lib
/
html_to_ascii.c
diff --git
a/libcitadel/lib/html_to_ascii.c
b/libcitadel/lib/html_to_ascii.c
index 5ea1e2756623e57c362c6a12b3dcd331b906d36b..45beb2cbb079b97eeaa2041df905e8676ce3145a 100644
(file)
--- a/
libcitadel/lib/html_to_ascii.c
+++ b/
libcitadel/lib/html_to_ascii.c
@@
-197,7
+197,7
@@
char *html_to_ascii(const char *inputmsg, int msglen, int screenwidth) {
strcat(outbuf, nl);
}
strcat(outbuf, nl);
}
-/****
+#if 0
These seemed like a good idea at the time, but it just makes a mess.
else if (
These seemed like a good idea at the time, but it just makes a mess.
else if (
@@
-224,7
+224,7
@@
char *html_to_ascii(const char *inputmsg, int msglen, int screenwidth) {
) {
strcat(outbuf, "_");
}
) {
strcat(outbuf, "_");
}
-****/
+#endif
else if (!strcasecmp(tag, "BR")) {
strcat(outbuf, nl);
else if (!strcasecmp(tag, "BR")) {
strcat(outbuf, nl);
@@
-274,7
+274,7
@@
char *html_to_ascii(const char *inputmsg, int msglen, int screenwidth) {
tag[strlen(tag)] = ch;
}
tag[strlen(tag)] = ch;
}
- else if (
!nest
) {
+ else if (
(!nest) && (styletag == 0)
) {
outbuf[strlen(outbuf)+1] = 0;
outbuf[strlen(outbuf)] = ch;
}
outbuf[strlen(outbuf)+1] = 0;
outbuf[strlen(outbuf)] = ch;
}