Checkout the white space control docs on the jinja2 website:
http://jinja.pocoo.org/docs/dev/templates/#whitespace-control
Specifically for things like {%- And -%}
On Wednesday, October 21, 2015, William Muriithi <[email protected]>
wrote:
> Evening,
>
> Is there a way to avoid an empty line in the configuration file when
> template has conditional lines?
>
> I have always ignored the empty line but logstash-forwarder use a json
> bases configuration and the empty line is problematic.
>
> Regards,
>
> William
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <javascript:_e(%7B%7D,'cvml','ansible-project%[email protected]');>
> .
> To post to this group, send email to [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAE9rU%2B6ZRHniu3cf-qqUMDjD5bqWeM4erwOtt2wVDThqBf9GYw%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAE9rU%2B6ZRHniu3cf-qqUMDjD5bqWeM4erwOtt2wVDThqBf9GYw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Matt Martz
@sivel
sivel.net
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAD8N0v__HFjnsMvmLWXM%2BiPcgyjmvGmWwGFMSUCUMJ6smQJKqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.