mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user