fixed compounding quotes issue with category names that require quotes when save is called more than once

This commit is contained in:
bspkrs committed 2014-06-26 16:31:27 -04:00
1 parent ebf0e7617a
commit f8be9a237c
1 file changed
+4 -2
@@ -271,12 +271,14 @@ public class ConfigCategory implements Map<String, Property>
write(out, pad0, COMMENT_SEPARATOR, NEW_LINE);
}
String displayName = name;
if (!allowedProperties.matchesAllOf(name))
{
name = '"' + name + '"';
displayName = '"' + name + '"';
}
write(out, pad0, name, " {");
write(out, pad0, displayName, " {");
Property[] props = getOrderedValues().toArray(new Property[] {});