Ver código fonte

Fix for nested partials indenting.

Fixes #167
Justin Hileman 12 anos atrás
pai
commit
e388a3ca7f
1 arquivos alterados com 1 adições e 1 exclusões
  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);
         }
     ';