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

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@365 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-05-14 00:07:07 +00:00
parent 04366b3505
commit 73c2d9b152
-5
View File
@@ -116,11 +116,6 @@ void Reader::readLine(bool in_string) {
key.clear();
return;
}
if (input->Eof()) {
// end of file
indent = -1;
return;
}
key = line.substr(indent, pos - indent);
if (!ignore_invalid && !in_string && starts_with(key, _(" "))) {
warning(_("key: '") + key + _("' starts with a space; only use TABs for indentation!"));