From bd87f11750fa713e5e5ea37d148bfe165d577c63 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 19 Sep 2006 14:09:03 +0000 Subject: [PATCH] Monotone-Parent: 8ea262b5fc027ba0d5aabcee59dcaec6c7f51cf1 Monotone-Revision: a520711e0a93bd5fa2c3ea213699ee5de9e4ab5e Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-09-19T14:09:03 Monotone-Branch: ca.inverse.sogo --- UI/Contacts/UIxContactView.m | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/UI/Contacts/UIxContactView.m b/UI/Contacts/UIxContactView.m index 33742809e..d0a3ab648 100644 --- a/UI/Contacts/UIxContactView.m +++ b/UI/Contacts/UIxContactView.m @@ -20,12 +20,13 @@ */ // $Id: UIxContactView.m 932 2005-08-01 13:17:55Z helge $ +#import #import #import #import +#import -#import #import "common.h" #import "UIxContactView.h" @@ -390,7 +391,18 @@ - (NSString *) note { - return [self _cardStringWithLabel: @"Note: " value: [card note]]; + NSString *note; + + note = [card note]; + if (note) + { + note = [note stringByReplacingString: @"\r\n" + withString: @"
"]; + note = [note stringByReplacingString: @"\n" + withString: @"
"]; + } + + return [self _cardStringWithLabel: @"Note: " value: note]; } /* hrefs */