Skip to content

[BUG] [Formatter] Twig - Indentation level is not increased after inserting an embed tag  #1370

@hollow3464

Description

@hollow3464

System Info

  • OS: e.g. Fedora 42
  • Python Version (3.13)
  • djLint Version (1.36.4)
  • template language: twig

Issue

The indenting is broken when using the built in embed tags. After inserting an embed tag, the indentation level does not increase. Using multiple embed tags on a file breaks it even more as it brings the indentation back another level.

How To Reproduce

  1. create an extendable twig template
  2. reference that template into a new one using the embed tags

Twig embed docs

1. Broken Indentation Image

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