projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c082092
)
JsTemplate.php
author
Alan Knowles
<alan@akbkhome.com>
Fri, 2 Dec 2011 09:24:55 +0000
(17:24 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 2 Dec 2011 09:24:55 +0000
(17:24 +0800)
JsTemplate.php
patch
|
blob
|
history
diff --git
a/JsTemplate.php
b/JsTemplate.php
index
7fe9397
..
29cb640
100644
(file)
--- a/
JsTemplate.php
+++ b/
JsTemplate.php
@@
-108,12
+108,12
@@
class Pman_Core_JsTemplate extends Pman {
$funcs = array();
// do not allow nested functions..?
$fstart = -1;
- $indent =
1
;
+ $indent =
2
;
$inscript = false;
$ret = &$out;
foreach($ar as $item) {
$in = str_repeat(" ", $indent);
- $indent = max($indent ,
0
);
+ $indent = max($indent ,
1
);
//var_Dump(substr($item,-3,2));
switch(true) {
case (!strlen($item)):