Sfoglia il codice sorgente

Fix indents in lambda sections inside indented partials.

Fixes #128
Justin Hileman 12 anni fa
parent
commit
1c945926bd
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/Mustache/Compiler.php

+ 1 - 1
src/Mustache/Compiler.php

@@ -189,7 +189,7 @@ class Mustache_Compiler
                 $source = %s;
                 $buffer .= $this->mustache
                     ->loadLambda((string) call_user_func($value, $source, $this->lambdaHelper)%s)
-                    ->renderInternal($context, $indent);
+                    ->renderInternal($context);
             } elseif (!empty($value)) {
                 $values = $this->isIterable($value) ? $value : array($value);
                 foreach ($values as $value) {