mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-29 20:05:59 +01:00
properly rid of whitespace chars from cfg lines
This commit is contained in:
parent
a431c1b01c
commit
760b37f71d
1 changed files with 1 additions and 4 deletions
|
@ -1126,10 +1126,7 @@ void CConfigManager::parseLine(std::string& line) {
|
||||||
startPos++;
|
startPos++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove shit at the beginning
|
line = removeBeginEndSpacesTabs(line);
|
||||||
while (line[0] == ' ' || line[0] == '\t') {
|
|
||||||
line = line.substr(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (line.contains(" {")) {
|
if (line.contains(" {")) {
|
||||||
auto cat = line.substr(0, line.find(" {"));
|
auto cat = line.substr(0, line.find(" {"));
|
||||||
|
|
Loading…
Reference in a new issue