Skip to content

Commit 964affd

Browse files
committed
add back space before trailing comment
1 parent c038e08 commit 964affd

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
@@ -649,7 +649,7 @@ void StyledStreamWriter::writeCommentBeforeValue(const Value& root) {
649649

650650
void StyledStreamWriter::writeCommentAfterValueOnSameLine(const Value& root) {
651651
if (root.hasComment(commentAfterOnSameLine))
652-
*document_ << root.getComment(commentAfterOnSameLine);
652+
*document_ << ' ' << root.getComment(commentAfterOnSameLine);
653653

654654
if (root.hasComment(commentAfter)) {
655655
writeIndent();

0 commit comments

Comments
 (0)