Skip to content

Commit

Permalink
Merge branch 'feature/indentation-fix' of https://github.com/DrPheltR…
Browse files Browse the repository at this point in the history
…ight/mustache.php into DrPheltRight-feature/indentation-fix
  • Loading branch information
bobthecow committed Mar 1, 2011
2 parents 9640915 + 5130ff2 commit 0ac8be6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Mustache.php
Expand Up @@ -615,8 +615,10 @@ protected function _renderUnescaped($tag_name) {
*/
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);
}

/**
Expand Down

0 comments on commit 0ac8be6

Please sign in to comment.