add back space before trailing comment

This commit is contained in:
Christopher Dunn 2015-01-25 15:49:02 -06:00
parent c038e08efc
commit 964affd333

View 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();