Make the Speckloader ignore tabs as well as spaces (closes #1688)

This commit is contained in:
Alexander Bock
2021-07-22 20:51:01 +02:00
parent e994e900ee
commit fcc1083129
+3 -3
View File
@@ -50,7 +50,7 @@ namespace {
// 3. Remove all spaces from the new beginning
// 4. Remove all spaces from the end
while (!line.empty() && line[0] == ' ') {
while (!line.empty() && (line[0] == ' ' || line[0] == '\t')) {
line = line.substr(1);
}
@@ -58,11 +58,11 @@ namespace {
line = line.substr(1);
}
while (!line.empty() && line[0] == ' ') {
while (!line.empty() && (line[0] == ' ' || line[0] == '\t')) {
line = line.substr(1);
}
while (!line.empty() && line.back() == ' ') {
while (!line.empty() && (line.back() == ' ' || line.back() == '\t')) {
line = line.substr(0, line.size() - 1);
}
}