properly rid of whitespace chars from cfg lines

This commit is contained in:
vaxerski 2023-02-04 15:21:57 +00:00
parent a431c1b01c
commit 760b37f71d

View file

@ -1126,10 +1126,7 @@ void CConfigManager::parseLine(std::string& line) {
startPos++;
}
// remove shit at the beginning
while (line[0] == ' ' || line[0] == '\t') {
line = line.substr(1);
}
line = removeBeginEndSpacesTabs(line);
if (line.contains(" {")) {
auto cat = line.substr(0, line.find(" {"));