Open Diegovsky opened 5 days ago
Using the online djlint formatter, I can't reproduce the issue.
Which "kwarg" do you mean? Both "kwargs"?
Do you have any other settings?
Hey there, thanks for the fast response :)
I meant every kwargs
use was replaced with an empty dict. Both in link_button
and in button
.
I haven't tried the web formatter, but it is occourring in the CLI. I'm not sure if this is relevant, but my file extension is .html.j2
.
System Info
OS: Arch Linux
Python Version (
python --version
): 3.12.7djLint Version (
djlint --version
): djlint, version 1.36.1template language: e.g. mustache: jinja2
Issue
Djlint replaces
kwargs
with empty{}
inside macro definitions.How To Reproduce
Here's a sample from our source code:
Upoon formatting with
djlint
, it replaceskwargs
uses with{}