mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-13 20:03:23 +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);
|
line = line.substr(3);
|
||||||
}
|
}
|
||||||
|
// Remove potential \r
|
||||||
|
if (line[line.size() - 1] == '\r')
|
||||||
|
line = line.substr(0, line.size() - 1);
|
||||||
// Ignore empty lines
|
// Ignore empty lines
|
||||||
if (line == "")
|
if (line == "")
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue