mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-22 03:02:49 +00:00
Strip whitespaces for second pair element
This commit is contained in:
parent
dcd554b69f
commit
cbc36239d1
1 changed files with 4 additions and 0 deletions
|
@ -99,6 +99,10 @@ void ApplyProperty(std::pair<First, Second>& propertyToSet, const std::string_vi
|
|||
size_t endBefore = before.find_last_not_of(whitespace);
|
||||
before = before.substr(beginBefore, endBefore - beginBefore + 1);
|
||||
|
||||
// Strip whitespace for after
|
||||
size_t beginAfter = after.find_first_not_of(whitespace);
|
||||
after = after.substr(beginAfter);
|
||||
|
||||
ApplyProperty(propertyToSet.first, before);
|
||||
ApplyProperty(propertyToSet.second, after);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue