projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ab2706
)
Suppress output of inline HTML styles when converting to plain text
author
Art Cancro
<ajc@citadel.org>
Sat, 7 Dec 2019 03:10:31 +0000
(22:10 -0500)
committer
Art Cancro
<ajc@citadel.org>
Sat, 7 Dec 2019 03:10:31 +0000
(22:10 -0500)
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 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);
}
-/****
+#if 0
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, "_");
}
-****/
+#endif
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;
}
- else if (
!nest
) {
+ else if (
(!nest) && (styletag == 0)
) {
outbuf[strlen(outbuf)+1] = 0;
outbuf[strlen(outbuf)] = ch;
}