projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
01c4048
)
libs/web: template: fix spurious nil or false values that broke various templates
author
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 5 Aug 2009 00:52:51 +0000
(
00:52
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 5 Aug 2009 00:52:51 +0000
(
00:52
+0000)
libs/web/src/template_parser.c
patch
|
blob
|
history
diff --git
a/libs/web/src/template_parser.c
b/libs/web/src/template_parser.c
index
9618919
..
fe324ce
100644
(file)
--- 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] = {
/* 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. */
};
/* Simple strstr() like function that takes len arguments for both haystack and needle. */