浏览代码

Fix for nested partials indenting.

Fixes #167
Justin Hileman 12 年之前
父节点
当前提交
e388a3ca7f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
         }
     ';