diff --git a/lib/base/configwriter.cpp b/lib/base/configwriter.cpp index 737305eac..eac3ca7b9 100644 --- a/lib/base/configwriter.cpp +++ b/lib/base/configwriter.cpp @@ -54,7 +54,9 @@ void ConfigWriter::EmitArray(std::ostream& fp, int indentLevel, const Array::Ptr { fp << "[ "; EmitArrayItems(fp, indentLevel, val); - fp << " ]"; + if (val->GetLength() > 0) + fp << " "; + fp << "]"; } void ConfigWriter::EmitArrayItems(std::ostream& fp, int indentLevel, const Array::Ptr& val)