Treat empty and nonexistent variables the same:
This applies to the relatively new "default value" syntax, using $varname?default|.
This commit is contained in:
parent
8822dacd92
commit
897c242ca5
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue