Strip whitespaces for second pair element

This commit is contained in:
scorpion-26 2023-12-03 22:23:32 +01:00
parent dcd554b69f
commit cbc36239d1

View file

@ -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);
}