diff options
author | vaxerski <[email protected]> | 2023-02-04 15:21:57 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-02-04 15:22:03 +0000 |
commit | 760b37f71d200643d3e267472e5cc290d38d1a53 (patch) | |
tree | ac7622f4f966af3675e3e47651bd9e88eac4fa23 | |
parent | a431c1b01c08cdc1c2f030bebf052aa4f534d12a (diff) | |
download | Hyprland-760b37f71d200643d3e267472e5cc290d38d1a53.tar.gz Hyprland-760b37f71d200643d3e267472e5cc290d38d1a53.zip |
properly rid of whitespace chars from cfg lines
-rw-r--r-- | src/config/ConfigManager.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 07ea3d03..142c8d71 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -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(" {")); |