Treat empty and nonexistent variables the same:

This applies to the relatively new "default value" syntax, using $varname?default|.
This commit is contained in:
Celtic Minstrel 2017-02-26 19:39:59 -05:00 committed by GitHub
parent 8822dacd92
commit 897c242ca5

View file

@ -198,7 +198,7 @@ static std::string do_interpolation(const std::string &str, const variable_set&
if(var_end == res.end()) {
res.replace(var_begin, default_start - 1, val);
}
else if(!val.blank()) {
else if(!val.empty()) {
res.replace(var_begin, var_end + 1, val);
}
else {