add back space before trailing comment
authorChristopher Dunn <cdunn2001@gmail.com>
Sun, 25 Jan 2015 21:49:02 +0000 (15:49 -0600)
committerChristopher Dunn <cdunn2001@gmail.com>
Sun, 25 Jan 2015 21:49:02 +0000 (15:49 -0600)
src/lib_json/json_writer.cpp

index f621a4f..f1e3b58 100644 (file)
@@ -649,7 +649,7 @@ void StyledStreamWriter::writeCommentBeforeValue(const Value& root) {
 
 void StyledStreamWriter::writeCommentAfterValueOnSameLine(const Value& root) {
   if (root.hasComment(commentAfterOnSameLine))
-    *document_ << root.getComment(commentAfterOnSameLine);
+    *document_ << ' ' << root.getComment(commentAfterOnSameLine);
 
   if (root.hasComment(commentAfter)) {
     writeIndent();