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:
commit
3b648d826f
1 changed files with 4 additions and 2 deletions
|
@ -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[] {});
|
||||
|
||||
|
|
Loading…
Reference in a new issue