mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-12-25 21:59:30 +01:00
Ignore empty lines in the word list, instead of throwing an exception
This commit is contained in:
parent
c861d37c5d
commit
dd003417c0
1 changed files with 3 additions and 0 deletions
|
@ -151,6 +151,9 @@ void CompDic::loadWordList(const string &iFileName, vector<wstring> &oWordList)
|
||||||
{
|
{
|
||||||
line = line.substr(3);
|
line = line.substr(3);
|
||||||
}
|
}
|
||||||
|
// Ignore empty lines
|
||||||
|
if (line == "")
|
||||||
|
continue;
|
||||||
oWordList.push_back(readFromUTF8(line.data(),
|
oWordList.push_back(readFromUTF8(line.data(),
|
||||||
line.size(), "loadWordList"));
|
line.size(), "loadWordList"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue