From c2755c065d2f952525b7fac9745d36ead0b85f7e Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 2 Aug 2006 20:19:17 +0000 Subject: [PATCH] Monotone-Parent: 3ac7d79c9f2332896ff6e695278f5f5ded648eb1 Monotone-Revision: 4d94487c312c73f76cac4c9cbbfef71966a3b768 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-08-02T20:19:17 Monotone-Branch: ca.inverse.sogo --- SoObjects/Contacts/NSDictionary+Contact.m | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/SoObjects/Contacts/NSDictionary+Contact.m b/SoObjects/Contacts/NSDictionary+Contact.m index ff86e88fd..644607631 100644 --- a/SoObjects/Contacts/NSDictionary+Contact.m +++ b/SoObjects/Contacts/NSDictionary+Contact.m @@ -51,7 +51,7 @@ "PROFILE:vCard\r\n"]; [self _appendSingleVCardValue: @"cn" - withFormat: @"FN:%@" + withFormat: @"FN:%@\r\n" toVCard: newVCard]; info = [self objectForKey: @"givenName"]; @@ -64,16 +64,16 @@ info2, info]; [self _appendSingleVCardValue: @"telephoneNumber" - withFormat: @"TEL;TYPE=work,voice,pref:%@" + withFormat: @"TEL;TYPE=work,voice,pref:%@\r\n" toVCard: newVCard]; [self _appendSingleVCardValue: @"facsimileTelephoneNumber" - withFormat: @"TEL;TYPE=work,fax:%@" + withFormat: @"TEL;TYPE=work,fax:%@\r\n" toVCard: newVCard]; [self _appendSingleVCardValue: @"homeTelephoneNumber" - withFormat: @"TEL;TYPE=home,voice:%@" + withFormat: @"TEL;TYPE=home,voice:%@\r\n" toVCard: newVCard]; [self _appendSingleVCardValue: @"mobile" - withFormat: @"TEL;TYPE=cell,voice:%@" + withFormat: @"TEL;TYPE=cell,voice:%@\r\n" toVCard: newVCard]; info = [self objectForKey: @"l"]; @@ -85,26 +85,26 @@ [newVCard appendFormat: @"ORG:%@;%@\r\n", info, info2]; - [newVCard appendString: @"END:VCARD\r\n"]; - info = [[self objectForKey: @"postalAddress"] stringByReplacingString: @"\r\n" withString: @";"]; if (info && [info length] > 0) - [newVCard appendFormat: @"ADR:TYPE=work,postal:%@", info]; + [newVCard appendFormat: @"ADR:TYPE=work,postal:%@\r\n", info]; info = [[self objectForKey: @"homePostalAddress"] stringByReplacingString: @"\r\n" withString: @";"]; if (info && [info length] > 0) - [newVCard appendFormat: @"ADR:TYPE=home,postal:%@", info]; + [newVCard appendFormat: @"ADR:TYPE=home,postal:%@\r\n", info]; [self _appendSingleVCardValue: @"mail" - withFormat: @"EMAIL;TYPE=internet,pref:%@" + withFormat: @"EMAIL;TYPE=internet,pref:%@\r\n" toVCard: newVCard]; [self _appendSingleVCardValue: @"labelledURI" - withFormat: @"URL:%@" + withFormat: @"URL:%@\r\n" toVCard: newVCard]; + [newVCard appendString: @"END:VCARD\r\n"]; + return newVCard; }