pypi djlint 1.40.4

4 hours ago

Fix

  • Keep Jinja comments and set tags idempotently indented with preserve_leading_space.
  • Avoid false H026 reports when id appears inside quoted attribute values.
  • Avoid false D018/J018 reports for action parameters inside quoted template URL helper attributes.
  • Report H007 when leading template tags appear before an HTML tag without a preceding doctype.
  • Keep blank_line_after_tag from inserting blank lines inside multiline HTML attribute values, preserving idempotent reformatting for embedded template tags.
  • Report T003 when {% endblock name %} does not match its opening {% block name %}.
  • Report H025 when list tags are nested inside <p> tags.

Don't miss a new djlint release

NewReleases is sending notifications on new releases.