rm trailing newlines for *all* comments

This will make it easier to fix newlines consistently.
This commit is contained in:
Christopher Dunn
2015-01-25 14:16:13 -06:00
parent 7312b1022d
commit 1e3149ab75
3 changed files with 19 additions and 11 deletions

View File

@@ -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_ = "";
}