github djlint/djLint v1.40.8

9 hours ago

Fix

  • Preserve conditional attribute names and significant whitespace in template-generated attributes.
  • Keep parent closing tags aligned after multiline inline content.
  • Avoid false H026 reports when id or class is followed by a spaced equals sign.
  • Keep short tag contents inline when attributes contain template expressions.
  • Avoid false D018/J018 reports for links using valid URI schemes.
  • Indent content inside Twig embed blocks.
  • Avoid false H037 reports for attributes in mutually exclusive template branches.
  • Respect exclude and extend_exclude for explicitly provided files.
  • Preserve attributes containing nested template blocks when wrapping long tags.
  • Preserve template expressions used in dynamic HTML tag names.
  • Preserve asterisks in HTML attribute names such as htmx response targets.
  • Avoid adding trailing whitespace after function calls in multiline template expressions.
  • Avoid false T002 reports for template tags inside HTML attributes.

Don't miss a new djLint release

NewReleases is sending notifications on new releases.