Browse Source

Fix for nested partials indenting.

Fixes #167
Justin Hileman 12 năm trước cách đây
mục cha
commit
e388a3ca7f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);
         }
     ';