mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-15 23:20:05 +02:00
rm trailing newlines for *all* comments
This will make it easier to fix newlines consistently.
This commit is contained in:
@@ -135,9 +135,6 @@ bool Reader::readValue() {
|
||||
bool successful = true;
|
||||
|
||||
if (collectComments_ && !commentsBefore_.empty()) {
|
||||
// Remove newline at the end of the comment
|
||||
if (commentsBefore_[commentsBefore_.size() - 1] == '\n')
|
||||
commentsBefore_.resize(commentsBefore_.size() - 1);
|
||||
currentValue().setComment(commentsBefore_, commentBefore);
|
||||
commentsBefore_ = "";
|
||||
}
|
||||
|
Reference in New Issue
Block a user