Permalink
Browse files

Added documentation to NSMutableString+HTML. Changed method name from…

… removeWhitespaceSuffix to removeTrailingWhitespace which sounds better and is quicker to grok.
  • Loading branch information...
1 parent 6d886e6 commit c147030ab28cfed99288cefc84ba5a6e77b35198 @joepasq joepasq committed Mar 2, 2012
@@ -978,7 +978,7 @@ - (void)parser:(DTHTMLParser *)parser didStartElement:(NSString *)elementName at
{
if (currentTag.displayStyle != DTHTMLElementDisplayStyleBlock)
{
- [_currentTagContents removeWhitespaceSuffix];
+ [_currentTagContents removeTrailingWhitespace];
}
removeUnflushedWhitespace = YES;
@@ -1050,7 +1050,7 @@ - (void)parser:(DTHTMLParser *)parser didEndElement:(NSString *)elementName
// trim off white space at end if block
if (currentTag.displayStyle != DTHTMLElementDisplayStyleInline)
{
- [_currentTagContents removeWhitespaceSuffix];
+ [_currentTagContents removeTrailingWhitespace];
}
[self _flushCurrentTagContent:_currentTagContents];
@@ -10,6 +10,7 @@
@interface NSMutableString (HTML)
-- (void)removeWhitespaceSuffix;
+/** Removes the trailing whitespace from this NSMutableString instance. */
+- (void)removeTrailingWhitespace;
@end
@@ -13,7 +13,7 @@
@implementation NSMutableString (HTML)
-- (void)removeWhitespaceSuffix
+- (void)removeTrailingWhitespace
{
NSUInteger length = self.length;

0 comments on commit c147030

Please sign in to comment.