Made the reader capable of skipping blank lines.

Added a bunch of missing byte-order marks.


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@827 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
coppro
2008-01-28 04:30:33 +00:00
parent 75a4adcf57
commit 98fe6a4e26
16 changed files with 19 additions and 16 deletions
+4 -1
View File
@@ -234,7 +234,10 @@ void Reader::readLine(bool in_string) {
size_t pos = line.find_first_of(_(':'), indent);
if (trim(line).empty() || line.GetChar(indent) == _('#')) {
// empty line or comment
key.clear();
if (input->Eof())
key.clear();
else // Recursion allows skipping of blank lines.
readLine(in_string);
return;
}
key = line.substr(indent, pos - indent);