You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a custom template tag flatblock (declared in the custom_blocks of my pyproject.toml), which isn't correctly indented when only a variable is inside it, whereas the block template tag is correctly indented in the same situation :
Before formatting
{% block title %}{{ title }}{% endblock title %}
{% flatblock title %}{{ title }}{% endflatblock title %}
After formatting
{% block title %}
{{ title }}
{% endblock title %}
{% flatblock title %}
{{ title }}{% endflatblock title %}
Note that if I use an html tag in the flatblock it will be correctly indented :
{% flatblock title %}
<p>{{ title }}</p>
{% endflatblock title %}
## [1.19.17](v1.19.16...v1.19.17) (2023-04-05)
### Bug Fixes
* **blocktrans:** allowed closing transblocks to be indented if they have a leading space ([d667273](d667273))
* **custom tags:** fixed issue where end tag for custom block was not de-indented ([fb8bf5e](fb8bf5e)), closes [#572](#572)
* **ignored code:** fixed formatting of ignore code inside django comment blocks ([120460d](120460d)), closes [#569](#569)
* **linter:** linter will now ignore {% raw %} {% endraw %} blocks ([2a6865e](2a6865e)), closes [#539](#539)
* **max line length:** fixes issues around max line length not fully respected on indented lines ([1ec6b29](1ec6b29)), closes [#580](#580)
* **preserving space:** misc improvements for the preserve leading space option ([03ee6f0](03ee6f0)), closes [#566](#566)
System Info
Issue
I have a custom template tag
flatblock
(declared in thecustom_blocks
of mypyproject.toml
), which isn't correctly indented when only a variable is inside it, whereas theblock
template tag is correctly indented in the same situation :Before formatting
After formatting
Note that if I use an html tag in the
flatblock
it will be correctly indented :How To Reproduce
Here is the content of my
pyproject.toml
The text was updated successfully, but these errors were encountered: