mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-03 23:56:16 +00:00
cplutil wasn't converting.
CFPropertyList couldn't output XML correctly.
This commit is contained in:
@@ -126,7 +126,7 @@ CFPropertyListSerializers[CFPropertyList.FormatXML_v1_0] =
|
||||
|
||||
"real": function(/*Float*/ aFloat)
|
||||
{
|
||||
return "<real>" + anInteger + "</real>";
|
||||
return "<real>" + aFloat + "</real>";
|
||||
},
|
||||
|
||||
"array": function(/*Array*/ anArray, /*Object*/ serializers)
|
||||
@@ -138,7 +138,7 @@ CFPropertyListSerializers[CFPropertyList.FormatXML_v1_0] =
|
||||
for (; index < count; ++index)
|
||||
string += serializePropertyList(anArray[index], serializers);
|
||||
|
||||
return "</array>";
|
||||
return string+"</array>";
|
||||
},
|
||||
|
||||
"dictionary": function(/*CFDictionary*/ aDictionary, /*Object*/ serializers)
|
||||
@@ -156,7 +156,7 @@ CFPropertyListSerializers[CFPropertyList.FormatXML_v1_0] =
|
||||
string += serializePropertyList(aDictionary.valueForKey(key), serializers);
|
||||
}
|
||||
|
||||
return "</dict>";
|
||||
return string+"</dict>";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ exports.main = function(args)
|
||||
}
|
||||
else
|
||||
{
|
||||
var encodedString = CFPropertyList.stringFromPropertyList(plistObject);
|
||||
var encodedString = CFPropertyList.stringFromPropertyList(plistObject, options.format);
|
||||
|
||||
// outextension?
|
||||
if (options.outPath === "-")
|
||||
|
||||
Reference in New Issue
Block a user