Skip to content

Commit

Permalink
added debugging methods, made markup more robustly handle arrays of n…
Browse files Browse the repository at this point in the history
…on-strings
  • Loading branch information
Tim Burks committed Sep 11, 2010
1 parent b276512 commit 7ca2c0c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion objc/markup.m
Expand Up @@ -92,7 +92,8 @@ - (id) callWithArguments:(id)cdr context:(NSMutableDictionary *)context
else if ([evaluatedItem isKindOfClass:[NSArray class]]) {
int max = [evaluatedItem count];
for (int i = 0; i < max; i++) {
[body appendString:[evaluatedItem objectAtIndex:i]];
id objectAtIndex = [evaluatedItem objectAtIndex:i];
[body appendString:[objectAtIndex stringValue]];
}
}
else {
Expand All @@ -112,4 +113,9 @@ - (id) callWithArguments:(id)cdr context:(NSMutableDictionary *)context
}
}

- (NSString *) tag {return tag;}
- (NSString *) prefix {return prefix;}
- (id) contents {return contents;}
- (BOOL) empty {return empty;}

@end

0 comments on commit 7ca2c0c

Please sign in to comment.