projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9458bbd
)
JsTemplate.php
author
Alan Knowles
<alan@akbkhome.com>
Fri, 2 Dec 2011 09:23:09 +0000
(17:23 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 2 Dec 2011 09:23:09 +0000
(17:23 +0800)
JsTemplate.php
JsTemplate.php
patch
|
blob
|
history
diff --git
a/JsTemplate.php
b/JsTemplate.php
index
a4f7003
..
7fe9397
100644
(file)
--- a/
JsTemplate.php
+++ b/
JsTemplate.php
@@
-113,7
+113,7
@@
class Pman_Core_JsTemplate extends Pman {
$ret = &$out;
foreach($ar as $item) {
$in = str_repeat(" ", $indent);
$ret = &$out;
foreach($ar as $item) {
$in = str_repeat(" ", $indent);
-
+ $indent = max($indent , 0);
//var_Dump(substr($item,-3,2));
switch(true) {
case (!strlen($item)):
//var_Dump(substr($item,-3,2));
switch(true) {
case (!strlen($item)):