diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-10-17 02:15:43 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-10-17 02:15:43 +0800 |
commit | 9c6bce4c376a2add62ed8ce0b2fef36e171161ff (patch) | |
tree | f3646a6b4b71c555590f0205453bc4fc7767996d /calendar/gui/e-cal-component-memo-preview.c | |
parent | 3c39e9cc89192c13787b7838b8054793ab624839 (diff) | |
download | gsoc2013-evolution-9c6bce4c376a2add62ed8ce0b2fef36e171161ff.tar gsoc2013-evolution-9c6bce4c376a2add62ed8ce0b2fef36e171161ff.tar.gz gsoc2013-evolution-9c6bce4c376a2add62ed8ce0b2fef36e171161ff.tar.bz2 gsoc2013-evolution-9c6bce4c376a2add62ed8ce0b2fef36e171161ff.tar.lz gsoc2013-evolution-9c6bce4c376a2add62ed8ce0b2fef36e171161ff.tar.xz gsoc2013-evolution-9c6bce4c376a2add62ed8ce0b2fef36e171161ff.tar.zst gsoc2013-evolution-9c6bce4c376a2add62ed8ce0b2fef36e171161ff.zip |
Fixes #332101
svn path=/trunk/; revision=32902
Diffstat (limited to 'calendar/gui/e-cal-component-memo-preview.c')
-rw-r--r-- | calendar/gui/e-cal-component-memo-preview.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/calendar/gui/e-cal-component-memo-preview.c b/calendar/gui/e-cal-component-memo-preview.c index 9f235b16f4..192ad70ee1 100644 --- a/calendar/gui/e-cal-component-memo-preview.c +++ b/calendar/gui/e-cal-component-memo-preview.c @@ -158,7 +158,7 @@ write_html (GtkHTMLStream *stream, ECal *ecal, ECalComponent *comp, icaltimezone e_cal_component_get_categories_list (comp, &l); if (l) { GSList *node; - GString *string = g_string_new (""); + GString *string = g_string_new (NULL); gtk_html_stream_printf(stream, "<H3>Categories: "); @@ -186,7 +186,9 @@ write_html (GtkHTMLStream *stream, ECal *ecal, ECalComponent *comp, icaltimezone } gtk_html_stream_printf(stream, string->str); - + + g_string_free (string, TRUE); + gtk_html_stream_printf(stream, "</H3>"); e_cal_component_free_categories_list (l); @@ -220,17 +222,17 @@ write_html (GtkHTMLStream *stream, ECal *ecal, ECalComponent *comp, icaltimezone for (node = l; node != NULL; node = node->next) { gint i, j; - GString *string = g_string_new (""); + GString *string = g_string_new (NULL); text = * (ECalComponentText *) node->data; for (i = 0, j=0; i < strlen (text.value ? text.value : 0); i++, j++) { if (text.value[i] == '\n'){ - string = g_string_append (string, "<BR>"); + string = g_string_append_len (string, "<BR>", 4); } else if (text.value[i] == '<') - string = g_string_append (string, "<"); + string = g_string_append_len (string, "<", 4); else if (text.value[i] == '>') - string = g_string_append (string, ">"); + string = g_string_append_len (string, ">", 4); else string = g_string_append_c (string, text.value[i]); } |