[evolution-data-server/gnome-3-22] Bug 777695 - [ECalClient] Produce CRLF line endings in iCalendar string



commit 3cba6aaa2a7611d223356fd3816c4935df244e32
Author: Tim Ruffing <tim timruffing de>
Date:   Thu Jan 26 14:01:37 2017 +0100

    Bug 777695 - [ECalClient] Produce CRLF line endings in iCalendar string

 calendar/libecal/e-cal-client.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/calendar/libecal/e-cal-client.c b/calendar/libecal/e-cal-client.c
index aeb25ea..6f4bdd6 100644
--- a/calendar/libecal/e-cal-client.c
+++ b/calendar/libecal/e-cal-client.c
@@ -3470,10 +3470,10 @@ e_cal_client_get_component_as_string (ECalClient *client,
        vcal_string = g_string_new (NULL);
        g_string_append (
                vcal_string,
-               "BEGIN:VCALENDAR\n"
-               "PRODID:-//Ximian//NONSGML Evolution Calendar//EN\n"
-               "VERSION:2.0\n"
-               "METHOD:PUBLISH\n");
+               "BEGIN:VCALENDAR\r\n"
+               "PRODID:-//Ximian//NONSGML Evolution Calendar//EN\r\n"
+               "VERSION:2.0\r\n"
+               "METHOD:PUBLISH\r\n");
 
        /* Now concatenate all the timezone strings. This also frees the
         * timezone strings as it goes. */
@@ -3485,7 +3485,7 @@ e_cal_client_get_component_as_string (ECalClient *client,
        /* If there were any timezones to send, create a complete VCALENDAR,
         * else just send the VEVENT/VTODO string. */
        g_string_append (vcal_string, obj_string);
-       g_string_append (vcal_string, "END:VCALENDAR\n");
+       g_string_append (vcal_string, "END:VCALENDAR\r\n");
        g_free (obj_string);
 
        obj_string = g_string_free (vcal_string, FALSE);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]