Merge pull request #1184 from bspkrs/patch-2

Fix config category names being quoted to many times.
This commit is contained in:
LexManos 2014-07-02 14:55:03 -07:00
commit e08c63b57b

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[] {});
@ -421,4 +423,4 @@ public class ConfigCategory implements Map<String, Property>
changed = true;
}
}
}
}