Skip to content

[BUG] [Formatter] indentation is wrong #1480

@simonLeary42

Description

@simonLeary42

System Info

reproduced in https://djlint.com/demo/ on 2025/11/12

Running with Python 3.13.2; djLint 1.36.4

Issue

How To Reproduce

this input:

<table>
    <tr>
        <th>End Date:</th>
        <td>
            <a href="">
                <span><i class=""></i>
                    Expires in {{ allocation.expires_in }} day{{ allocation.expires_in|pluralize }} - Click to renew
                </span>
            </a>
        </td>
    </tr>
</table>

makes this output:

<table>
    <tr>
        <th>End Date:</th>
        <td>
            <a href="">
            <span><i class=""></i>
            Expires in {{ allocation.expires_in }} day{{ allocation.expires_in|pluralize }} - Click to renew
        </span>
    </a>
</td>
</tr>
</table>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions