Skip to content

Smaller than character breaks formatting in a twig file #640

@kareljan

Description

@kareljan

When I have this:

{% for step in steps %}
    <div class="{% if loop.index < currentStep %}opacity-50{% elseif loop.index == currentStep %}font-bold{% endif %}">
        {{ loop.index }}.
        {{ step.title }}
    </div>
{% endfor %}

I get this on beautify:

{% for step in steps %}
    <div

It strips everything after the div. When I change the '<' to a '==' the format is OK.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions