Skip to content

Conversation

@nurullahakin
Copy link

Partially solves #480

While the indent issue no longer happens with the {tag syntax, it still happens with other multiline syntax. Might get back to it some other time.

Example case:

<div>
{if true}
{include file="dashboard.tpl"}
{include
file="dashboard.tpl"
icon="svg/products.tpl"
}
{$recruit_attr = [
    'a',
    'b',
    'c'
]}
{/if}
</div>

After 4 formats:

<div>
    {if true}
        {include file="dashboard.tpl"}
        {include
            file="dashboard.tpl" // solved
            icon="svg/products.tpl" // solved
        } {* solved *}
        {$recruit_attr = [
                    'a', // keeps indenting
                    'b', // keeps indenting
                    'c' // keeps indenting
                ]} // keeps indenting
    {/if}
</div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant