Fix failing partials example.

Only prepend $indent to the first output on a new line.
This commit is contained in:
Justin Hileman
2012-03-14 17:41:38 -07:00
parent fe9fccb441
commit 50b3594458
2 changed files with 30 additions and 9 deletions
+2 -2
View File
@@ -65,9 +65,9 @@ class CompilerTest extends \PHPUnit_Framework_TestCase {
'$buffer .= $indent . \'foo\'',
'$buffer .= "\n"',
'$value = $context->find(\'name\');',
'$buffer .= $indent . htmlspecialchars($value, ENT_COMPAT, $this->mustache->getCharset());',
'$buffer .= htmlspecialchars($value, ENT_COMPAT, $this->mustache->getCharset());',
'$value = $context->last();',
'$buffer .= $indent . \'\\\'bar\\\'\';',
'$buffer .= \'\\\'bar\\\'\';',
'return $buffer;',
)
),