mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-22 07:03:19 +00:00
Monotone-Parent: 68ac68112d48188262bfd33776567f9be9e3dd97
Monotone-Revision: d005b9c392fd087db1701fb458d40b135f0d046d Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-06-08T18:31:00 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2010-06-08 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* iCalXMLRenderer.m (-[CardGroup xmlRender]): don't append empty
|
||||
rendering from child elements to avoid an exception.
|
||||
|
||||
2010-06-04 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* iCalXMLRenderer.m: new class module for exporting iCalCalendar
|
||||
|
||||
@@ -298,7 +298,7 @@
|
||||
|
||||
- (NSString *) xmlRender
|
||||
{
|
||||
NSString *lowerTag;
|
||||
NSString *lowerTag, *childRendering;
|
||||
int count, max;
|
||||
NSMutableString *rendering;
|
||||
NSMutableArray *properties, *components;
|
||||
@@ -313,10 +313,14 @@
|
||||
for (count = 0; count < max; count++)
|
||||
{
|
||||
currentChild = [children objectAtIndex: count];
|
||||
if ([currentChild isKindOfClass: [CardGroup class]])
|
||||
[components addObject: [currentChild xmlRender]];
|
||||
else
|
||||
[properties addObject: [currentChild xmlRender]];
|
||||
childRendering = [currentChild xmlRender];
|
||||
if (childRendering)
|
||||
{
|
||||
if ([currentChild isKindOfClass: [CardGroup class]])
|
||||
[components addObject: childRendering];
|
||||
else
|
||||
[properties addObject: childRendering];
|
||||
}
|
||||
}
|
||||
|
||||
lowerTag = [tag lowercaseString];
|
||||
|
||||
Reference in New Issue
Block a user