Merge pull request #1183 from bspkrs/master

fixed dupe quotes issue with category names that require quotes when save is called more than once
This commit is contained in:
cpw 2014-06-26 16:34:12 -04:00
commit 3b648d826f

View file

@ -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[] {});