From: Jose Dapena Paz Date: Tue, 16 Jun 2009 17:10:06 +0000 (+0200) Subject: Remove conversion to html in extract_text method. X-Git-Tag: 3.0.17-rc18~25 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=57d7b1d1ecf43e0ca885d0afc336cca8e94f7836 Remove conversion to html in extract_text method. --- diff --git a/src/modest-formatter.c b/src/modest-formatter.c index 6eabe57..4c12532 100644 --- a/src/modest-formatter.c +++ b/src/modest-formatter.c @@ -74,7 +74,7 @@ extract_text (ModestFormatter *self, TnyMimePart *body) TnyStream *input_stream; GtkTextBuffer *buf; GtkTextIter start, end; - gchar *text, *converted_text; + gchar *text; ModestFormatterPrivate *priv; gint total; @@ -122,15 +122,6 @@ extract_text (ModestFormatter *self, TnyMimePart *body) /* Convert to desired content type if needed */ priv = MODEST_FORMATTER_GET_PRIVATE (self); - if (strcmp (tny_mime_part_get_content_type (body), priv->content_type) == 0) { - if (!strcmp (priv->content_type, "text/html")) - converted_text = modest_text_utils_convert_to_html (text); - else - converted_text = g_strdup (text); - - g_free (text); - text = converted_text; - } return text; }