Skip to content

Commit 80a82ea

Browse files
committed
Optional space after comma
resolves open-source-parsers#513
1 parent f78f685 commit 80a82ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib_json/json_writer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ void BuiltStyledStreamWriter::writeArrayValue(Value const& value) {
10021002
if (!indentation_.empty()) *sout_ << " ";
10031003
for (unsigned index = 0; index < size; ++index) {
10041004
if (index > 0)
1005-
*sout_ << ", ";
1005+
*sout_ << ((!indentation_.empty()) ? ", " : ",");
10061006
*sout_ << childValues_[index];
10071007
}
10081008
if (!indentation_.empty()) *sout_ << " ";

0 commit comments

Comments
 (0)