projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libs/web: various changes in template library
[project/luci.git]
/
libs
/
web
/
src
/
template_parser.c
diff --git
a/libs/web/src/template_parser.c
b/libs/web/src/template_parser.c
index
76fb5a7
..
6054451
100644
(file)
--- a/
libs/web/src/template_parser.c
+++ b/
libs/web/src/template_parser.c
@@
-244,7
+244,7
@@
template_format_chunk(struct template_parser *parser, size_t *sz)
switch (c->type)
{
case T_TYPE_TEXT:
switch (c->type)
{
case T_TYPE_TEXT:
-
escape_luastr
(buf, c->s, c->e - c->s, 0);
+
luastr_escape
(buf, c->s, c->e - c->s, 0);
break;
case T_TYPE_EXPR:
break;
case T_TYPE_EXPR:
@@
-254,15
+254,15
@@
template_format_chunk(struct template_parser *parser, size_t *sz)
break;
case T_TYPE_INCLUDE:
break;
case T_TYPE_INCLUDE:
-
escape_luastr
(buf, c->s, c->e - c->s, 0);
+
luastr_escape
(buf, c->s, c->e - c->s, 0);
break;
case T_TYPE_I18N:
break;
case T_TYPE_I18N:
-
translate_luastr
(buf, c->s, c->e - c->s, 1);
+
luastr_translate
(buf, c->s, c->e - c->s, 1);
break;
case T_TYPE_I18N_RAW:
break;
case T_TYPE_I18N_RAW:
-
translate_luastr
(buf, c->s, c->e - c->s, 0);
+
luastr_translate
(buf, c->s, c->e - c->s, 0);
break;
case T_TYPE_CODE:
break;
case T_TYPE_CODE: