/* state */
-- (void)resetExceptResult
+- (void) resetExceptResult
{
if (content)
{
}
}
-- (void)endValueTag
+- (void) endValueTag
{
[types removeAllObjects];
[args removeAllObjects];
currentGroup = nil;
}
-- (void)startVCardSet
+- (void) startVCardSet
{
currentCardGroup = nil;
currentGroup = nil;
vcs.isInVCardSet = 1;
}
-- (void)endVCardSet
+- (void) endVCardSet
{
vcs.isInVCardSet = 0;
}
+2007-08-27 Wolfgang Sourdeau <wsourdeau@inverse.ca>
+
+ * VSSaxDriver.m ([VSSaxDriver
+ -parseFromSource:_sourcesystemId:_sysId]): report only tags for
+ which the content is not empty.
+
2007-05-03 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* VSSaxDriver.m ([VSSaxDriver +initialize]): removed the space
withAttrs: (SaxAttributes *) _attrs
andContent: (NSString *) _content
{
- /*
- This is called for all non-BEGIN|END types.
- */
+ VSSaxTag *a;
+ NSString *testContent;
-// _content = [stringFormatter stringByUnescapingRFC2445Text: _content];
+ /* This is called for all non-BEGIN|END types. */
+ testContent = [[_content unescapedFromCard] stringByReplacingString: @";"
+ withString: @""];
- /* check whether type should be reported as an attribute in XML */
-
- [self _beginTag: _tagName group: _group withAttrs: _attrs];
-
- if ([_content length] > 0)
+ if ([[testContent stringByTrimmingSpaces] length] > 0)
{
- VSSaxTag *a;
-
+ [self _beginTag: _tagName group: _group withAttrs: _attrs];
+
a = [(VSSaxTag *)[VSSaxTag alloc]
initWithContentString: [_content unescapedFromCard]];
if (a)
[elementList addObject: a];
[a release];
}
- }
- [self _endTag: _tagName];
+ [self _endTag: _tagName];
+ }
}
/* report events for collected elements */