tera icon indicating copy to clipboard operation
tera copied to clipboard

Whitespace control and indentation

Open b4nst opened this issue 7 months ago • 0 comments

resources:
  - sa.yaml
{% for project in projects %}
  - iam-bindings/{{project}}.yaml
{% endfor %}

gives

resources:
  - sa.yaml

  - iam-bindings/project-id-test.yaml
resources:
  - sa.yaml
{% for project in projects -%}
  - iam-bindings/{{project}}.yaml
{% endfor %}

gives

resources:
  - sa.yaml
- iam-bindings/project-id-test.yaml

How can one achieve:

resources:
  - sa.yaml
  - iam-bindings/project-id-test.yaml

I tried with the indent function but same result.

b4nst avatar Aug 07 '25 10:08 b4nst