askama
askama copied to clipboard
Whitespace config not working?
Hi, I can't seem to get the whitespace option to work.
This is the file I'm trying to format
docker run -d \
{% for volume in volumes %}
-v {{ volume }} \
{% endfor %}
-e VERSION=docker \
--restart unless-stopped \
redis
askama.toml
[general]
dirs = ["scripts"]
whitespace = "suppress"
I've tried suppress and minimize, but both give this
docker run -d \
-v /v1:/v1 \
-v /v2:/v2 \
-e VERSION=docker \
--restart unless-stopped \
redis
It works if I use
{%- for volume in volumes %}
-v {{ volume }} \
{%- endfor %}
but not the config
What version are you using? I think this feature isn't yet available in released versions.
Ah I should've checked beforehand, It works when I use git main Thanks!