@@ -771,14 +771,14 @@ else return @"<0>{}"; } if ([self isKindOfClass: [OFMutableDictionary class]]) - ret = [OFMutableString stringWithFormat: @"{", + ret = [OFMutableString stringWithFormat: @"{\n", count]; else - ret = [OFMutableString stringWithFormat: @"<%zd>{", count]; + ret = [OFMutableString stringWithFormat: @"<%zd>{\n", count]; pool = [[OFAutoreleasePool alloc] init]; keyEnumerator = [self keyEnumerator]; objectEnumerator = [self objectEnumerator]; i = 0; @@ -789,15 +789,17 @@ [ret appendString: [key stringBySerializing]]; [ret appendString: @" = "]; [ret appendString: [object stringBySerializing]]; if (++i < count) - [ret appendString: @"; "]; + [ret appendString: @";\n"]; [pool2 releaseObjects]; } - [ret appendString: @"}"]; + [ret replaceOccurrencesOfString: @"\n" + withString: @"\n\t"]; + [ret appendString: @";\n}"]; [pool release]; /* * Class swizzle the string to be immutable. We declared the return type