Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
[Style] Added <strong> and <em> as aliases of <b> and <i> to TTStyled…
Browse files Browse the repository at this point in the history
…TextParser.
  • Loading branch information
olegueret authored and jverkoey committed Feb 26, 2011
1 parent 3240cf8 commit 6000481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Three20Style/Sources/TTStyledTextParser.m
Expand Up @@ -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];

Expand Down

0 comments on commit 6000481

Please sign in to comment.