X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fhtml2html.c;h=b15455b675b7861577e7ea19316ebc33ddfa51fa;hb=9c8d4cdfbd524e2b89622528fd5628291ebaed7c;hp=da668c71cdc985440a268689e891620daf5fed58;hpb=c477d6a73cf3afdc47913e2c775ceb5938b6a469;p=citadel.git diff --git a/webcit/html2html.c b/webcit/html2html.c index da668c71c..b15455b67 100644 --- a/webcit/html2html.c +++ b/webcit/html2html.c @@ -376,6 +376,23 @@ void output_html(char *supplied_charset, int treat_as_wiki) { if (linklen > 0) break; } if (linklen > 0) { + char *ltreviewptr; + char *nbspreviewptr; + //* spot for some subject strings tinymce tends to give us. + ltreviewptr = strchr(ptr, '<'); + if (ltreviewptr != NULL) { + *ltreviewptr = '\0'; + linklen = ltreviewptr - ptr; + } + + nbspreviewptr = strstr(ptr, " "); + if (nbspreviewptr != NULL) { + ///*nbspreviewptr = '\0'; + linklen = nbspreviewptr - ptr; + } + if (ltreviewptr != 0) + *ltreviewptr = '<'; + content_length += (32 + linklen); if (content_length >= converted_alloc) { converted_alloc += 8192;