aboutsummaryrefslogtreecommitdiff
path: root/common/stream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/stream.cpp')
-rw-r--r--common/stream.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/stream.cpp b/common/stream.cpp
index 1ca741483e..4a411fadf5 100644
--- a/common/stream.cpp
+++ b/common/stream.cpp
@@ -211,6 +211,9 @@ String SeekableReadStream::readLine() {
break;
line += buf;
}
+
+ if (line.lastChar() == '\n')
+ line.deleteLastChar();
return line;
}