1
0

Fixed the tab spacing.

This commit is contained in:
narroo 2014-02-17 08:46:41 -05:00
parent 3ce8bf9712
commit ecabb2b34f

View File

@ -132,37 +132,37 @@ bool cIniFile::ReadFile(const AString & a_FileName, bool a_AllowExampleRedirect)
{ {
case '[': case '[':
{ {
if ( if (
((pRight = line.find_last_of("]")) != AString::npos) && ((pRight = line.find_last_of("]")) != AString::npos) &&
(pRight > pLeft) (pRight > pLeft)
) )
{ {
keyname = line.substr(pLeft + 1, pRight - pLeft - 1); keyname = line.substr(pLeft + 1, pRight - pLeft - 1);
AddKeyName(keyname); AddKeyName(keyname);
} }
break; break;
} }
case '=': case '=':
{ {
valuename = line.substr(0, pLeft); valuename = line.substr(0, pLeft);
value = line.substr(pLeft + 1); value = line.substr(pLeft + 1);
AddValue(keyname, valuename, value); AddValue(keyname, valuename, value);
break; break;
} }
case ';': case ';':
case '#': case '#':
{ {
if (names.size() == 0) if (names.size() == 0)
{ {
AddHeaderComment(line.substr(pLeft + 1)); AddHeaderComment(line.substr(pLeft + 1));
} }
else else
{ {
AddKeyComment(keyname, line.substr(pLeft + 1)); AddKeyComment(keyname, line.substr(pLeft + 1));
} }
break; break;
} }
} // switch (line[pLeft]) } // switch (line[pLeft])
} // while(getline(f, line)) } // while(getline(f, line))