From 73c2d9b152df381aeb1d394772ce5422bbd295cc Mon Sep 17 00:00:00 2001 From: twanvl Date: Mon, 14 May 2007 00:07:07 +0000 Subject: [PATCH] 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 --- src/util/io/reader.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/util/io/reader.cpp b/src/util/io/reader.cpp index bccf2bdf..af6661d3 100644 --- a/src/util/io/reader.cpp +++ b/src/util/io/reader.cpp @@ -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!"));