commit | 80a82ea269d6643e91d8c97acb5209aa74559d63 | [log] [tgz] |
---|---|---|
author | Christopher Dunn <cdunn2001@gmail.com> | Sun Aug 21 16:35:19 2016 -0500 |
committer | Christopher Dunn <cdunn2001@gmail.com> | Sun Aug 21 16:35:19 2016 -0500 |
tree | 9805b758a2cef00f57b5ff210a1e199a0bc9c134 | |
parent | f78f685babcd7390daad3c8fce519a110cae36c6 [diff] |
Optional space after comma resolves #513
diff --git a/src/lib_json/json_writer.cpp b/src/lib_json/json_writer.cpp index a0edff4..1bb3b21 100644 --- a/src/lib_json/json_writer.cpp +++ b/src/lib_json/json_writer.cpp
@@ -1002,7 +1002,7 @@ if (!indentation_.empty()) *sout_ << " "; for (unsigned index = 0; index < size; ++index) { if (index > 0) - *sout_ << ", "; + *sout_ << ((!indentation_.empty()) ? ", " : ","); *sout_ << childValues_[index]; } if (!indentation_.empty()) *sout_ << " ";