chore(deps): update dependency djlint to >=1.49.9 #747
No reviewers
Labels
No labels
API
Billing
UI/UX
dependencies
bug
change
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
servala/servala-portal!747
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/djlint-1.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
>=1.49.6→>=1.49.9Release Notes
djlint/djLint (djlint)
v1.49.9Compare Source
Bug fixes
{% set %}that is not JSON, as in a string passed to{{ url("…", x) }}, is kept as written. It was rewritten as a line break, which changed the string.kind, as in<track kind="">or<track kind>. Browsers read an emptykindasmetadata, not subtitles, so such a track carries no captions. H057 took it for a subtitles track.djlint.toml,.djlintrcor the file--configurationnames. It always saidpyproject.toml.v1.49.8Compare Source
Feature
makoprofile for Mako templates. Mako needs a control line, such as% if x:or% endfor, and a##comment to start a line of their own, and other profiles joined them onto other lines, which broke the template. Under themakoprofile they always keep their own lines, and the lines between% ifand% endif, or between a<%block>or<%def>tag and its closing tag, are indented like any other block. The code in a${}expression is left as written, and so are the attributes of a tag that depend on control lines, Python blocks,<%doc>and<%text>, and a script or style holding Mako syntax under--format-jsor--format-css. The linter runs the HTML rules. Theallprofile handles Mako's lines the same way.{% apply %},{% sandbox %}and{% guard %}blocks and Django's old{% ifequal %}and{% ifnotequal %}blocks indent their contents like other blocks.Bug fixes
max_line_length = [100]or"indent": null, is reported and falls back to its default, as a string that is no number already did. djLint failed instead.{% endtoc %}, or a stray{% endif %}, stays at the level of the markup around it. It moved one level to the left, and so did everything after it.{{ _("Hello " "world") }}or{% set x = "a" "b" %}, or in triple quotes, keeps its quotes. They were dropped, which left{{ _(Hello world) }}, a variable name rather than a string.Performance
${that never close no longer slows formatting down. Three thousand of them in one paragraph took ten seconds and now take a tenth of one.v1.49.7Compare Source
Feature
max_blank_linestogether withpreserve_blank_lines, which takes precedence, and--prefer-configurationwithout--configuration. The warning goes to stderr once per run, so the language server does not repeat it on every change.Bug fixes
>, as in</pat the end of a line, again runs to the next>, as browsers read it. Since 1.49.5, the tag on the next line was taken for an opening tag, so each paragraph after such a line was indented one level deeper than the one before.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.