'<foo>"$bar"</foo>'."\n"
);
+{ # non-ASCII characters can also trigger the bug
+
+ use utf8;
+
+ is(
+ do_tt('<li>foo – bar.</li>', {}),
+ '<li>foo – bar.</li>',
+ );
+}
+
is(
do_tt(
'[% FOREACH item IN items %][% item %][% END %]',
is( do_tt('"0"', {}), '"0"' );
{
- use utf8;
-
- is(
- do_tt('<li>foo – bar.</li>', {}),
- '<li>foo – bar.</li>',
- );
-}
-
-{
my $tmpl = q[
[%- MACRO test(name, value) BLOCK;
IF !value.length;