[evolution] Bug #516000 - Wrong formatted quoted text
- From: Milan Crha <mcrha src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution] Bug #516000 - Wrong formatted quoted text
- Date: Thu, 15 Oct 2009 16:10:48 +0000 (UTC)
commit 25dd724999d551f2f59b06909cff7c660a3c3dab
Author: Milan Crha <mcrha redhat com>
Date: Thu Oct 15 18:10:25 2009 +0200
Bug #516000 - Wrong formatted quoted text
em-format/em-format-quote.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/em-format/em-format-quote.c b/em-format/em-format-quote.c
index 88b11c3..4bbe977 100644
--- a/em-format/em-format-quote.c
+++ b/em-format/em-format-quote.c
@@ -29,6 +29,7 @@
#include <camel/camel-iconv.h>
#include <camel/camel-stream-filter.h>
+#include <camel/camel-mime-filter-linewrap.h>
#include <camel/camel-mime-filter-tohtml.h>
#include <camel/camel-mime-filter-enriched.h>
#include <camel/camel-string-utils.h>
@@ -487,6 +488,7 @@ emfq_text_plain(EMFormatQuote *emfq, CamelStream *stream, CamelMimePart *part, E
CamelStreamFilter *filtered_stream;
CamelMimeFilter *html_filter;
CamelMimeFilter *sig_strip;
+ CamelMimeFilter *wrap_filter;
CamelContentType *type;
const gchar *format;
guint32 rgb = 0x737373, flags;
@@ -511,6 +513,10 @@ emfq_text_plain(EMFormatQuote *emfq, CamelStream *stream, CamelMimePart *part, E
camel_object_unref (sig_strip);
}
+ wrap_filter = camel_mime_filter_linewrap_new (70, 70, 0, CAMEL_MIME_FILTER_LINEWRAP_WORD);
+ camel_stream_filter_add (filtered_stream, wrap_filter);
+ camel_object_unref (wrap_filter);
+
html_filter = camel_mime_filter_tohtml_new(flags, rgb);
camel_stream_filter_add(filtered_stream, html_filter);
camel_object_unref(html_filter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]