Merge pull request #2969 from LogicParrot/ini
Ignore trailing and leading spaces in INI values
This commit is contained in:
commit
aefacbd3cd
@ -146,7 +146,7 @@ bool cIniFile::ReadFile(const AString & a_FileName, bool a_AllowExampleRedirect)
|
||||
case '=':
|
||||
{
|
||||
valuename = line.substr(0, pLeft);
|
||||
value = line.substr(pLeft + 1);
|
||||
value = TrimString(line.substr(pLeft + 1));
|
||||
AddValue(keyname, valuename, value);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user