Open aarongoldenthal opened 1 year ago
python --version
djlint --version
The formatting is incorrectly formatting Nunjucks filters with arguments - the filters are removed, and properties of the argument are appended to the previous argument. For example:
- {% set absoluteUrl %}{{ page.url | htmlBaseUrl(metadata.url) }}{% endset %} + {% set absoluteUrl %}{{ page.url.url }}{% endset %} - {{ post.templateContent | transformWithHtmlBase(absolutePostUrl, post.url) | dump | safe }} + {{ post.templateContent.url | dump | safe }}
This appears to have starting with v1.32.0 (and I'd guess related to https://github.com/Riverside-Healthcare/djLint/issues/704).
Run djlint --check . with the following config:
djlint --check .
{ "blank_line_after_tag": "extends, include", "blank_line_before_tag": "extends, include", "extension": "njk", "indent": "4", "ignore_blocks": "set", "format_attribute_template_tags": true, "format_css": false, "format_js": false, "max_attribute_length": "100", "max_line_length": "120", "no_line_after_yaml": true, "preserve_blank_lines": true, "preserve_leading_space": false, "profile": "nunjucks", "require_pragma": false, "use_gitignore": true }
Thanks for reporting! Shucks, I don't have time to fix right now so I will roll back that update until we can figure out a better plan.
System Info
python --version
): 3.10.11djlint --version
): 1.32.0Issue
The formatting is incorrectly formatting Nunjucks filters with arguments - the filters are removed, and properties of the argument are appended to the previous argument. For example:
This appears to have starting with v1.32.0 (and I'd guess related to https://github.com/Riverside-Healthcare/djLint/issues/704).
How To Reproduce
Run
djlint --check .
with the following config: