Monotone-Parent: ccfc7eec4cbaf67a75a6234a98ca6d0b154ca196
Monotone-Revision: 5ec95086791268665860b1d3426a6dac9b220e92 Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-09-24T15:43:35 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
ee06dcfa12
commit
8906e89999
|
@ -1,3 +1,8 @@
|
|||
2009-09-24 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* NSArray+NGCards.m (-renderedForCards): insert the non-blank
|
||||
values at their correct positions by inserting empty strings.
|
||||
|
||||
2009-09-10 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
* iCalPerson.m ([iCalPerson -_valueOfMailtoAttribute:]): fixed the
|
||||
|
|
|
@ -110,13 +110,26 @@
|
|||
{
|
||||
NSMutableArray *purified;
|
||||
NSString *string;
|
||||
NSEnumerator *strings;
|
||||
int count, max, lastInsert;
|
||||
|
||||
purified = [NSMutableArray arrayWithCapacity: [self count]];
|
||||
strings = [self objectEnumerator];
|
||||
while ((string = [strings nextObject]))
|
||||
if ([string length] > 0)
|
||||
[purified addObject: [string escapedForCards]];
|
||||
max = [self count];
|
||||
purified = [NSMutableArray arrayWithCapacity: max];
|
||||
|
||||
lastInsert = -1;
|
||||
for (count = 0; count < max; count++)
|
||||
{
|
||||
string = [self objectAtIndex: count];
|
||||
if ([string length] > 0)
|
||||
{
|
||||
while (lastInsert < (count - 1))
|
||||
{
|
||||
[purified addObject: @""];
|
||||
lastInsert++;
|
||||
}
|
||||
[purified addObject: [string escapedForCards]];
|
||||
lastInsert = count;
|
||||
}
|
||||
}
|
||||
|
||||
return purified;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue