libs/web: fix template parsing of default texts in i18n expressions
This commit is contained in:
parent
047d4e45f6
commit
8acc6307bf
1 changed files with 5 additions and 5 deletions
|
@ -186,8 +186,8 @@ static const char * generate_expression(struct template_parser *data, size_t *sz
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Found whitespace in i18n expression, raise flag */
|
/* Found first whitespace in i18n expression, raise flag */
|
||||||
else if( isspace(data->out[i]) && (data->type == T_TYPE_I18N) )
|
else if( isspace(data->out[i]) && (data->type == T_TYPE_I18N) && (i18n_hasdef == 0) )
|
||||||
{
|
{
|
||||||
i18n_hasdef = 1;
|
i18n_hasdef = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue