mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-27 11:21:02 +08:00
add back space before trailing comment
This commit is contained in:
parent
c038e08efc
commit
964affd333
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user