Don't clear the body of \t tags when doing stuff to them

This commit is contained in:
Thomas Goyne 2013-01-12 21:01:43 -08:00
parent 3b4d121d4a
commit f8b717e9ac
1 changed files with 2 additions and 2 deletions

View File

@ -80,8 +80,8 @@ template<> std::string AssOverrideParameter::Get<std::string>() const {
if (omitted) throw agi::InternalError("AssOverrideParameter::Get() called on omitted parameter", 0);
if (block.get()) {
std::string str(block->GetText());
if (boost::starts_with(str, "{")) str.erase(0);
if (boost::ends_with(str, "}")) str.erase(str.size() - 1);
if (boost::starts_with(str, "{")) str.erase(begin(str));
if (boost::ends_with(str, "}")) str.erase(end(str) - 1);
return str;
}
return value;