mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-12-25 21:59:30 +01:00
Ignore '\r' characters when loading the word list
This commit is contained in:
parent
809eb9eb94
commit
170c59481f
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);
|
||||
}
|
||||
// Remove potential \r
|
||||
if (line[line.size() - 1] == '\r')
|
||||
line = line.substr(0, line.size() - 1);
|
||||
// Ignore empty lines
|
||||
if (line == "")
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue