Some tidyups

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7456 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 2000-09-10 05:34:31 +00:00
parent 122b12a894
commit 0deff55b4e
3 changed files with 13 additions and 7 deletions

View file

@ -190,14 +190,12 @@ static Class NSMutableAttributedString_concrete_class;
NSDictionary *attrs;
NSMutableString *desc;
desc = AUTORELEASE([[super description] mutableCopy]);
[desc appendFormat: @" Length: %u", length];
desc = [[NSMutableString alloc] init];
while (index < length &&
(attrs = [self attributesAtIndex: index effectiveRange: &r]) != nil)
{
index = NSMaxRange(r);
[desc appendFormat: @"\nRange: %@ Chars:'%@' Attrs: %@",
NSStringFromRange(r), [string substringFromRange: r], attrs];
[desc appendFormat: @"%@%@", [string substringFromRange: r], attrs];
}
return desc;
}