Fix failing partials example.
Only prepend $indent to the first output on a new line.
This commit is contained in:
@@ -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;',
|
||||
)
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user