projects
/
platform
/
upstream
/
jsoncpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c038e08
)
add back space before trailing comment
author
Christopher Dunn
<cdunn2001@gmail.com>
Sun, 25 Jan 2015 21:49:02 +0000
(15:49 -0600)
committer
Christopher Dunn
<cdunn2001@gmail.com>
Sun, 25 Jan 2015 21:49:02 +0000
(15:49 -0600)
src/lib_json/json_writer.cpp
patch
|
blob
|
history
diff --git
a/src/lib_json/json_writer.cpp
b/src/lib_json/json_writer.cpp
index
f621a4f
..
f1e3b58
100644
(file)
--- a/
src/lib_json/json_writer.cpp
+++ b/
src/lib_json/json_writer.cpp
@@
-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();