diff options
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-cal-component-memo-preview.c | 6 | ||||
-rw-r--r-- | calendar/gui/e-cal-component-preview.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/calendar/gui/e-cal-component-memo-preview.c b/calendar/gui/e-cal-component-memo-preview.c index 4608967cfd..aeeb30ec79 100644 --- a/calendar/gui/e-cal-component-memo-preview.c +++ b/calendar/gui/e-cal-component-memo-preview.c @@ -98,6 +98,9 @@ url_requested_cb (GtkHTML *html, const char *url, GtkHTMLStream *stream, gpointe } while (result == GNOME_VFS_OK); gnome_vfs_close (handle); + + if (result == GNOME_VFS_ERROR_EOF) + gtk_html_stream_close (stream, GTK_HTML_STREAM_OK); } } } @@ -187,7 +190,8 @@ write_html (GtkHTMLStream *stream, ECal *ecal, ECalComponent *comp, icaltimezone } } - gtk_html_stream_printf(stream, "%s", string->str); + if (string->len > 0) + gtk_html_stream_printf(stream, "%s", string->str); g_string_free (string, TRUE); diff --git a/calendar/gui/e-cal-component-preview.c b/calendar/gui/e-cal-component-preview.c index b833ef06ad..94092893ca 100644 --- a/calendar/gui/e-cal-component-preview.c +++ b/calendar/gui/e-cal-component-preview.c @@ -96,6 +96,9 @@ url_requested_cb (GtkHTML *html, const char *url, GtkHTMLStream *stream, gpointe } while (result == GNOME_VFS_OK); gnome_vfs_close (handle); + + if (result == GNOME_VFS_ERROR_EOF) + gtk_html_stream_close (stream, GTK_HTML_STREAM_OK); } } } |