Fix indents in lambda sections inside indented partials.

Fixes #128
This commit is contained in:
Justin Hileman
2013-07-21 00:49:10 -07:00
parent 408ff8d345
commit 1c945926bd
+1 -1
View File
@@ -189,7 +189,7 @@ class Mustache_Compiler
$source = %s; $source = %s;
$buffer .= $this->mustache $buffer .= $this->mustache
->loadLambda((string) call_user_func($value, $source, $this->lambdaHelper)%s) ->loadLambda((string) call_user_func($value, $source, $this->lambdaHelper)%s)
->renderInternal($context, $indent); ->renderInternal($context);
} elseif (!empty($value)) { } elseif (!empty($value)) {
$values = $this->isIterable($value) ? $value : array($value); $values = $this->isIterable($value) ? $value : array($value);
foreach ($values as $value) { foreach ($values as $value) {