Commit cc05d2c2 authored by twanvl's avatar twanvl

Reader now correctly reads the last line of input (if no newline at eof)

parent 0a74f873
...@@ -116,11 +116,6 @@ void Reader::readLine(bool in_string) { ...@@ -116,11 +116,6 @@ void Reader::readLine(bool in_string) {
key.clear(); key.clear();
return; return;
} }
if (input->Eof()) {
// end of file
indent = -1;
return;
}
key = line.substr(indent, pos - indent); key = line.substr(indent, pos - indent);
if (!ignore_invalid && !in_string && starts_with(key, _(" "))) { if (!ignore_invalid && !in_string && starts_with(key, _(" "))) {
warning(_("key: '") + key + _("' starts with a space; only use TABs for indentation!")); warning(_("key: '") + key + _("' starts with a space; only use TABs for indentation!"));
......
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