libs/web: template: fix spurious nil or false values that broke various templates

This commit is contained in:
Jo-Philipp Wich 2009-08-05 00:52:51 +00:00
parent 01c4048021
commit 67150c34a1

View file

@ -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. */