mirror of https://github.com/odrling/Aegisub
Don't clear the body of \t tags when doing stuff to them
This commit is contained in:
parent
3b4d121d4a
commit
f8b717e9ac
|
@ -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 (omitted) throw agi::InternalError("AssOverrideParameter::Get() called on omitted parameter", 0);
|
||||||
if (block.get()) {
|
if (block.get()) {
|
||||||
std::string str(block->GetText());
|
std::string str(block->GetText());
|
||||||
if (boost::starts_with(str, "{")) str.erase(0);
|
if (boost::starts_with(str, "{")) str.erase(begin(str));
|
||||||
if (boost::ends_with(str, "}")) str.erase(str.size() - 1);
|
if (boost::ends_with(str, "}")) str.erase(end(str) - 1);
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
|
|
Loading…
Reference in New Issue