Version: 3.1.3
Bug Description
I'm currently using a custom template for Contributte/Datagrid, that contains this code:
Note: the exception occurs even if the code below is the only code in the whole template.
{define columnsSummary}
{foreach $columns as $key => $column}
{var $td = $column->getElementForRender('td', $key)}
{do $td->class[] = 'datagrid-table-td'}
{do $td->class[] = 'datagrid-table-tbody-td'}
{$td->startTag()|noescape}
{$columnsSummary->render($key)}
{$td->endTag()|noescape}
{/foreach}
{/define}
Screenshot of the exception:
Screenshot of the highlighted code, it uses tabs for indentation:
This code compiles fine:
{define columnsSummary}
{foreach $columns as $key => $column}
{var $td = $column->getElementForRender('td', $key)}
{do $td->class[] = 'datagrid-table-td'}
{do $td->class[] = 'datagrid-table-tbody-td'}
{$td->startTag()|noescape}
{$columnsSummary->render($key)}
{$td->endTag()|noescape}
{/foreach}
{/define}
This is also ok:
{define columnsSummary}
{foreach $columns as $key => $column}
{var $td = $column->getElementForRender('td', $key)}
{do $td->class[] = 'datagrid-table-td'}
{do $td->class[] = 'datagrid-table-tbody-td'}
{$td->startTag()|noescape}
{$columnsSummary->render($key)}
{$td->endTag()|noescape}
{/foreach}
{/define}
Steps To Reproduce
Try to compile the code above with Dedent enabled.
Expected Behavior
Latte code successfully compiles.
Version: 3.1.3
Bug Description
I'm currently using a custom template for Contributte/Datagrid, that contains this code:
Note: the exception occurs even if the code below is the only code in the whole template.
Screenshot of the exception:
Screenshot of the highlighted code, it uses tabs for indentation:
This code compiles fine:
This is also ok:
Steps To Reproduce
Try to compile the code above with Dedent enabled.
Expected Behavior
Latte code successfully compiles.