Skip to content

Whitespace control and indentation #971

@b4nst

Description

@b4nst
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions