Part of the EllisLab Network

Bug Report

next parser bug

Date: 10/01/2008 Severity: Trivial
Status: Resolved Reporter: gox
Version: 1.7.0 SVN
Keywords: Libraries

Description

{test}
  a = {a} and b = {b}

{/test}

work fine
but if i want print it twice:

{test}
a = {a} and b = {b}

{/test}

{test}
a = {a} and b = {b}

{/test}

heh, results below:

Code Sample

{controller}
$data
= array(
              
'test' => array(
                              array(
'a' => 'start_1', 'b' => 4       ),
                              array(
'a' => 2,         'b' => 5       ),
                              array(
'a' => 3,         'b' => '6_end' ),
                             ),
             );
echo
$this->parser->parse('test', $data, true);
return;

{parser view file}
{test}
a
= {a} and b = {b}
{
/test}

{test}
a
= {a} and b = {b}
{
/test}

Expected Result

a = start_1 and b = 4
a = 2 and b = 5
a = 3 and b = 6_end

a = start_1 and b = 4
a = 2 and b = 5
a = 3 and b = 6_end

Actual Result

a = start_1 and b = 4
{/test}

{test}
a = start_1 and b = 4

a = 2 and b = 5
{/test}

{test}
a = 2 and b = 5

a = 3 and b = 6_end
{/test}

{test}
a = 3 and b = 6_end

Comment on Bug Report

Name:

Email:

Location:

URL:

Remember my personal information

Notify me of follow-up comments?