My favorites | Sign in
Project Home
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 16 attachment: stringfixes.diff (898 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Index: CXMLNode.m
===================================================================
--- CXMLNode.m (revision 96)
+++ CXMLNode.m (working copy)
@@ -194,7 +194,7 @@
case CXMLAttributeKind:
value = [NSMutableString stringWithString:[self stringValue]];
[value replaceOccurrencesOfString:@"\"" withString:@""" options:0 range:NSMakeRange(0, [value length])];
- [str appendString:[NSString stringWithFormat:@" %@=\"%@\"", [self name], value]];
+ [str appendFormat:@" %@=\"%@\"", [self name], value];
break;
case CXMLTextKind:
[str appendString:[self stringValue]];
@@ -211,7 +211,7 @@

- (NSString *)XMLStringWithOptions:(NSUInteger)options
{
-return [self _XMLStringWithOptions:options appendingToString:@""];
+return [self _XMLStringWithOptions:options appendingToString:[NSMutableString string]];
}
//- (NSString *)canonicalXMLStringPreservingComments:(BOOL)comments;

Powered by Google Project Hosting