You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ansible-lint should allow for Jinja whitespace control, e.g. {{- and -}}.
The reason for using yaml multiline string here is, that I need to build a string without newlines from multiple variables with defaults from other variables which leads to the line being longer than 160 chars.
ansible-lint /tmp/abc.yml
[206] Variables should have spaces before and after: {{ var_name }}
/tmp/abc.yml:12
{{- bar }}/
[206] Variables should have spaces before and after: {{ var_name }}
/tmp/abc.yml:13
{{- baz }}
The text was updated successfully, but these errors were encountered:
I confirm that I enounter this bug in an alternative way: {{ var_name -}} as dash suffix is also part of the jinja2 specification and AFAIK there is no workaround.
Issue Type
Ansible and Ansible Lint details
Desired Behaviour
ansible-lint should allow for Jinja whitespace control, e.g.
{{-
and-}}
.The reason for using yaml multiline string here is, that I need to build a string without newlines from multiple variables with defaults from other variables which leads to the line being longer than 160 chars.
Actual Behaviour (Bug report only)
The text was updated successfully, but these errors were encountered: