aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2012-03-29 23:26:03 +0800
committerDan Vrátil <dvratil@redhat.com>2012-03-29 23:26:03 +0800
commit2e404cbfd9b7ab9612b642265186c81480cac9e9 (patch)
tree1f11067305bd2e5f136bab9dc20593efcd270c82
parentf3150b99087a815061a012e93367425d3b9d06fd (diff)
downloadgsoc2013-evolution-2e404cbfd9b7ab9612b642265186c81480cac9e9.tar
gsoc2013-evolution-2e404cbfd9b7ab9612b642265186c81480cac9e9.tar.gz
gsoc2013-evolution-2e404cbfd9b7ab9612b642265186c81480cac9e9.tar.bz2
gsoc2013-evolution-2e404cbfd9b7ab9612b642265186c81480cac9e9.tar.lz
gsoc2013-evolution-2e404cbfd9b7ab9612b642265186c81480cac9e9.tar.xz
gsoc2013-evolution-2e404cbfd9b7ab9612b642265186c81480cac9e9.tar.zst
gsoc2013-evolution-2e404cbfd9b7ab9612b642265186c81480cac9e9.zip
Bug #673067 - [itip-formatter] Shows one long line for the meeting description
-rw-r--r--plugins/itip-formatter/itip-formatter.c30
1 files changed, 27 insertions, 3 deletions
diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c
index b40a5082ce..b59b6f76b8 100644
--- a/plugins/itip-formatter/itip-formatter.c
+++ b/plugins/itip-formatter/itip-formatter.c
@@ -2961,8 +2961,20 @@ init_itip_view (ItipPURI *info,
if (list) {
ECalComponentText *text = list->data;
- if (text->value)
- itip_view_set_comment (view, text->value);
+ if (text->value) {
+ gchar *html;
+
+ html = camel_text_to_html (
+ text->value,
+ CAMEL_MIME_FILTER_TOHTML_CONVERT_NL |
+ CAMEL_MIME_FILTER_TOHTML_CONVERT_URLS |
+ CAMEL_MIME_FILTER_TOHTML_CONVERT_ADDRESSES,
+ 0);
+
+ itip_view_set_comment (view, html);
+
+ g_free (html);
+ }
}
e_cal_component_free_text_list (list);
}
@@ -2980,8 +2992,20 @@ init_itip_view (ItipPURI *info,
e_cal_component_free_text_list (list);
if (gstring) {
- itip_view_set_description (view, gstring->str);
+ gchar *html;
+
+ html = camel_text_to_html (
+ gstring->str,
+ CAMEL_MIME_FILTER_TOHTML_CONVERT_NL |
+ CAMEL_MIME_FILTER_TOHTML_CONVERT_SPACES |
+ CAMEL_MIME_FILTER_TOHTML_CONVERT_URLS |
+ CAMEL_MIME_FILTER_TOHTML_MARK_CITATION |
+ CAMEL_MIME_FILTER_TOHTML_CONVERT_ADDRESSES,
+ 0);
+
+ itip_view_set_description (view, html);
g_string_free (gstring, TRUE);
+ g_free (html);
}
to_zone = e_shell_settings_get_pointer (shell_settings, "cal-timezone");