Fixed broken encoding of single-value element

pull/17/head
Ludovic Marcotte 2014-02-05 15:23:09 -05:00
parent a1cf066828
commit f7a20d0a83
1 changed files with 2 additions and 2 deletions

View File

@ -218,11 +218,11 @@ static NSArray *privilegedTagNames = nil;
length: contentLength]; length: contentLength];
free (content); free (content);
content = NULL; content = NULL;
// NSLog (@"content: '%@'", s); //NSLog(@"content: '%@'", s);
if ([privilegedTagNames containsObject: [currentElement tag]]) if ([privilegedTagNames containsObject: [currentElement tag]])
contentValues = [s vCardSubvalues]; contentValues = [s vCardSubvalues];
else else
contentValues = [NSMutableDictionary dictionaryWithObject: [NSMutableArray arrayWithObject: [NSMutableArray arrayWithObject: s]] contentValues = [NSMutableDictionary dictionaryWithObject: [NSMutableArray arrayWithObject: [s asCardAttributeValues]]
forKey: @""]; forKey: @""];
} }
else else