File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1491,7 +1491,7 @@ JSONCPP_STRING Value::toStyledString() const {
1491
1491
1492
1492
JSONCPP_STRING out = this ->hasComment (commentBefore) ? " \n " : " " ;
1493
1493
out += Json::writeString (builder, *this );
1494
- out += " \n " ;
1494
+ out += ' \n ' ;
1495
1495
1496
1496
return out;
1497
1497
}
Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ JSONCPP_STRING FastWriter::write(const Value& root) {
366
366
document_.clear ();
367
367
writeValue (root);
368
368
if (!omitEndingLineFeed_)
369
- document_ += " \n " ;
369
+ document_ += ' \n ' ;
370
370
return document_;
371
371
}
372
372
@@ -438,7 +438,7 @@ JSONCPP_STRING StyledWriter::write(const Value& root) {
438
438
writeCommentBeforeValue (root);
439
439
writeValue (root);
440
440
writeCommentAfterValueOnSameLine (root);
441
- document_ += " \n " ;
441
+ document_ += ' \n ' ;
442
442
return document_;
443
443
}
444
444
@@ -608,7 +608,7 @@ void StyledWriter::writeCommentBeforeValue(const Value& root) {
608
608
if (!root.hasComment (commentBefore))
609
609
return ;
610
610
611
- document_ += " \n " ;
611
+ document_ += ' \n ' ;
612
612
writeIndent ();
613
613
const JSONCPP_STRING& comment = root.getComment (commentBefore);
614
614
JSONCPP_STRING::const_iterator iter = comment.begin ();
@@ -620,17 +620,17 @@ void StyledWriter::writeCommentBeforeValue(const Value& root) {
620
620
}
621
621
622
622
// Comments are stripped of trailing newlines, so add one here
623
- document_ += " \n " ;
623
+ document_ += ' \n ' ;
624
624
}
625
625
626
626
void StyledWriter::writeCommentAfterValueOnSameLine (const Value& root) {
627
627
if (root.hasComment (commentAfterOnSameLine))
628
628
document_ += " " + root.getComment (commentAfterOnSameLine);
629
629
630
630
if (root.hasComment (commentAfter)) {
631
- document_ += " \n " ;
631
+ document_ += ' \n ' ;
632
632
document_ += root.getComment (commentAfter);
633
- document_ += " \n " ;
633
+ document_ += ' \n ' ;
634
634
}
635
635
}
636
636
You can’t perform that action at this time.
0 commit comments