Merge branch 'feature/indentation-fix' of https://github.com/DrPheltRight/mustache.php into DrPheltRight-feature/indentation-fix

This commit is contained in:
Justin Hileman
2011-03-01 10:42:06 -05:00
+4 -2
View File
@@ -615,8 +615,10 @@ class Mustache {
*/
protected function _renderPartial($tag_name, $whitespace = '') {
$view = clone($this);
return $whitespace . preg_replace('/\n(?!$)/s', "\n" . $whitespace, $view->render($this->_getPartial($tag_name)));
$partial = $whitespace . preg_replace('/\n(?!$)/s', "\n" . $whitespace, $this->_getPartial($tag_name));
return $view->render($partial);
}
/**