Skip to content

Error using {breakIf} in nested foreach loop #340

Closed
@janda-quitec

Description

@janda-quitec

Version: 3.0.6

Bug Description:
If {breakIf} is used, additional </span> is inserted into HTML code

Steps To Reproduce - paste this code to https://fiddle.nette.org/latte:

<span n:foreach="[0=>'a',1=>'b'] as $key=>$value">
{foreach ['a'=>'A','b'=>'B'] as $k=>$v}
{if $k == $value}
{$v}
{breakIf TRUE} {* chybu nadbytecneho </span> zpusobuje tento radek *}
{/if}
{/foreach}
</span>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions