Explorar o código

Fix for nested partials indenting.

Fixes #167
Justin Hileman %!s(int64=12) %!d(string=hai) anos
pai
achega
e388a3ca7f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Mustache/Compiler.php

+ 1 - 1
src/Mustache/Compiler.php

@@ -262,7 +262,7 @@ class Mustache_Compiler
 
     const PARTIAL = '
         if ($partial = $this->mustache->loadPartial(%s)) {
-            $buffer .= $partial->renderInternal($context, %s);
+            $buffer .= $partial->renderInternal($context, $indent . %s);
         }
     ';