diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-08-05 00:52:51 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-08-05 00:52:51 +0000 |
commit | 67150c34a103fe89a0e32d16169f958e2758ca56 (patch) | |
tree | 2171fe2674ee594c8a5cfed77eefe31a4a1bea32 /libs/web | |
parent | 01c4048021b3dc108f8f5630801fcd87286447dd (diff) |
libs/web: template: fix spurious nil or false values that broke various templates
Diffstat (limited to 'libs/web')
-rw-r--r-- | libs/web/src/template_parser.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/web/src/template_parser.c b/libs/web/src/template_parser.c index 9618919b3..fe324cedc 100644 --- a/libs/web/src/template_parser.c +++ b/libs/web/src/template_parser.c @@ -21,12 +21,12 @@ /* leading and trailing code for different types */ const char * gen_code[6][2] = { - { "write(\"", "\")" }, - { NULL, NULL }, - { "write(tostring(", "))" }, - { "include(\"", "\")" }, - { "write(translate(\"", "\"))" }, - { NULL, " " } + { "write(\"", "\")" }, + { NULL, NULL }, + { "write(tostring(", " or \"\"))" }, + { "include(\"", "\")" }, + { "write(translate(\"", "\"))" }, + { NULL, " " } }; /* Simple strstr() like function that takes len arguments for both haystack and needle. */ |