Skip to content
Browse files

[Style] Added <strong> and <em> as aliases of <b> and <i> to TTStyled…

…TextParser.
  • Loading branch information...
1 parent 3240cf8 commit 6000481a3eb115c8c01a62003779a3e724f19775 Oleguer Huguet committed with jverkoey
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Three20Style/Sources/TTStyledTextParser.m
View
4 src/Three20Style/Sources/TTStyledTextParser.m
@@ -183,11 +183,11 @@ - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName
node.className = [attributeDict objectForKey:@"class"];
[self pushNode:node];
- } else if ([tag isEqualToString:@"b"]) {
+ } else if ([tag isEqualToString:@"b"] || [tag isEqualToString:@"strong"]) {
TTStyledBoldNode* node = [[[TTStyledBoldNode alloc] init] autorelease];
[self pushNode:node];
- } else if ([tag isEqualToString:@"i"]) {
+ } else if ([tag isEqualToString:@"i"] || [tag isEqualToString:@"em"]) {
TTStyledItalicNode* node = [[[TTStyledItalicNode alloc] init] autorelease];
[self pushNode:node];

0 comments on commit 6000481

Please sign in to comment.
Something went wrong with that request. Please try again.