close pre tag in case we just flush. I am not sure if it's still worth to
2004-03-29 Radek Doulik <rodo@ximian.com> * camel-mime-filter-tohtml.c (html_convert): close pre tag in case we just flush. I am not sure if it's still worth to check for inlen == 0 and handle it specially, but didn't want to make too big changes. Fixes #55817 svn path=/trunk/; revision=25229
This commit is contained in:
committed by
Radek Doulik
parent
724507dfa6
commit
d2aaaeb274
@ -1,3 +1,12 @@
|
||||
2004-03-29 Radek Doulik <rodo@ximian.com>
|
||||
|
||||
* camel-mime-filter-tohtml.c (html_convert): close pre tag in case
|
||||
we just flush. I am not sure if it's still worth to check for
|
||||
inlen == 0 and handle it specially, but didn't want to make too
|
||||
big changes.
|
||||
|
||||
Fixes #55817
|
||||
|
||||
2004-03-29 Not Zed <NotZed@Ximian.com>
|
||||
|
||||
* providers/imap/camel-imap-store.c (get_folder_counts): use
|
||||
|
||||
@ -230,9 +230,21 @@ html_convert (CamelMimeFilter *filter, char *in, size_t inlen, size_t prespace,
|
||||
int depth;
|
||||
|
||||
if (inlen == 0) {
|
||||
*out = in;
|
||||
*outlen = 0;
|
||||
*outprespace = 0;
|
||||
if (html->pre_open) {
|
||||
/* close the pre-tag */
|
||||
outend = filter->outbuf + filter->outsize;
|
||||
outptr = check_size (filter, filter->outbuf, &outend, 10);
|
||||
outptr = g_stpcpy (outptr, "</pre>");
|
||||
html->pre_open = FALSE;
|
||||
|
||||
*out = filter->outbuf;
|
||||
*outlen = outptr - filter->outbuf;
|
||||
*outprespace = filter->outpre;
|
||||
} else {
|
||||
*out = in;
|
||||
*outlen = 0;
|
||||
*outprespace = 0;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user