pad = getIndent(indent + 1);
Property[] props = properties.values().toArray(new Property[properties.size()]);
for (int x = 0; x < props.length; x++) {
Property prop = props[x];
if (prop.comment != null) {
if (x != 0) {
out.newLine();
}
for (String commentLine : splitter.split(prop.comment)) {
out.write(pad);
out.write("# ");
out.write(commentLine);
out.newLine();
}
}
String propName = prop.getName();
propName = !allowedProperties.matchesAllOf(propName) ? '"' + propName + '"' : propName;
if (prop.isList()) {
out.write(pad);
out.write(prop.getType().getID());
out.write(':');
out.write(propName);
out.write(" <");
out.newLine();
pad = getIndent(indent + 2);
for (String line : prop.getStringList()) {
out.write(pad);
out.write(line);
out.newLine();
}
out.write(getIndent(indent + 1));
out.write(" >");
out.newLine();
pad = getIndent(indent + 1);
} else if (prop.getType() == null) {
out.write(pad);
out.write(propName);
out.write('=');
out.write(prop.getString());
} else {
out.write(pad);
out.write(prop.getType().getID());
out.write(':');
out.write(propName);
out.write('=');
out.write(prop.getString());
out.newLine();
}
}
for (ConfigCategory child : children) {