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
## [1.34.1](v1.34.0...v1.34.1) (2023-12-20)
### Bug Fixes
* **formatter:** Avoid rewriting the file if it has not been changed ([6965ba5](6965ba5))
* **linter:** fix missed H025 for double closing ([cf52faf](cf52faf)), closes [#786](#786)
System Info
Issue
If there are matching orphaned closing HTML tags, an H025 warning isn't raised. I expect it to raise a warning for every orphan closing tag.
The rule inserts orphaned closing tags into the list of opening tags, paving the way for subsequent closing tags to match earlier closing tags and treating them as closed https://github.com/Riverside-Healthcare/djLint/blob/master/src/djlint/rules/H025.py#L49
How To Reproduce
A minimal example is this HTML source:
If you remove one of the tags, H025 is raised as expected. It happens in more complex and realistic scenarios too:
and
Contents of .djlintrc/pyproject.toml [tool.djlint]
The text was updated successfully, but these errors were encountered: