mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-04 09:59:44 -05:00
Make the Speckloader ignore tabs as well as spaces (closes #1688)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user