Frameworks/Adium Framework/Source/AIXMLElement.m
changeset 2597 07e07f9788a6
parent 2578 c5b0c0b0c141
child 2791 a18df53b0617
equal deleted inserted replaced
2596:387091087c49 2597:07e07f9788a6
   228 			if ([value respondsToSelector:@selector(stringValue)]) {
   228 			if ([value respondsToSelector:@selector(stringValue)]) {
   229 				value = [(NSNumber *)value stringValue];
   229 				value = [(NSNumber *)value stringValue];
   230 			} else if ([value respondsToSelector:@selector(absoluteString)]) {
   230 			} else if ([value respondsToSelector:@selector(absoluteString)]) {
   231 				value = [(NSURL *)value absoluteString];
   231 				value = [(NSURL *)value absoluteString];
   232 			}
   232 			}
   233 			[string appendFormat:@" %@=\"%@\"", key, value];
   233 			[string appendFormat:@" %@=%@", key, [self quotedXMLAttributeValueStringForString:value]];
   234 		}
   234 		}
   235 	}
   235 	}
   236 	if ((![contents count]) && (selfCloses)) {
   236 	if ((![contents count]) && (selfCloses)) {
   237 		[string appendString:@" /"];
   237 		[string appendString:@" /"];
   238 	}
   238 	}