From 20f44a392775799448b37fd0eec93da7d04c9dfb Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 10 Sep 2009 13:38:56 +0000 Subject: [PATCH] Monotone-Parent: dc5bdda4eee483eae805bffa6ff605e9995cd81d Monotone-Revision: 9f79dbe6555cff12bfb3ced124471b7ced0eb94f Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-09-10T13:38:56 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++++ UI/Scheduler/UIxComponentEditor.m | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 337414d68..b157243db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-09-10 Wolfgang Sourdeau + + * UI/Scheduler/UIxComponentEditor.m (-setComment,comment): + properly substitute the form-provided "\r\n" sequences with "\n" + sequences and vice-versa. + 2009-09-09 Wolfgang Sourdeau * SoObjects/Appointments/SOGoAppointmentFolder.m diff --git a/UI/Scheduler/UIxComponentEditor.m b/UI/Scheduler/UIxComponentEditor.m index 73ed2fdc5..316ee34dc 100644 --- a/UI/Scheduler/UIxComponentEditor.m +++ b/UI/Scheduler/UIxComponentEditor.m @@ -806,12 +806,13 @@ iRANGE(2); - (void) setComment: (NSString *) _value { - ASSIGN (comment, _value); +#warning should we do the same for "location" and "summary"? What about ContactsUI? + ASSIGN (comment, [_value stringByReplacingString: @"\r\n" withString: @"\n"]); } - (NSString *) comment { - return comment; + return [comment stringByReplacingString: @"\n" withString: @"\r\n"]; } - (BOOL) hasComment