Commit 3c87f829 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Always trim the text in FileLineReader


Signed-off-by: Waqar Ahmed's avatarWaqar Ahmed <waqar.17a@gmail.com>
parent 50565a60
......@@ -183,9 +183,8 @@ public:
if (state.invalidChars > 0) {
text = QString::fromLatin1(line);
}
while (text.size() && text.at(text.size() - 1).isSpace()) {
text.chop(1);
}
text = text.trimmed();
lastLine = text;
return text;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment