Monotone-Parent: 8ea262b5fc027ba0d5aabcee59dcaec6c7f51cf1

Monotone-Revision: a520711e0a93bd5fa2c3ea213699ee5de9e4ab5e

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-09-19T14:09:03
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-09-19 14:09:03 +00:00
parent a7d41b5240
commit bd87f11750

View File

@@ -20,12 +20,13 @@
*/
// $Id: UIxContactView.m 932 2005-08-01 13:17:55Z helge $
#import <Contacts/SOGoContactObject.h>
#import <NGCards/NGVCard.h>
#import <NGCards/CardElement.h>
#import <NGCards/NSArray+NGCards.h>
#import <NGExtensions/NSString+Ext.h>
#import <Contacts/SOGoContactObject.h>
#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: @"<br />"];
note = [note stringByReplacingString: @"\n"
withString: @"<br />"];
}
return [self _cardStringWithLabel: @"Note: " value: note];
}
/* hrefs */