empty line where conditional line exist

12 views
Skip to first unread message

William Muriithi

unread,
Oct 21, 2015, 8:58:40 PM10/21/15
to ansible...@googlegroups.com
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

Matt Martz

unread,
Oct 21, 2015, 9:22:12 PM10/21/15
to ansible...@googlegroups.com
Checkout the white space control docs on the jinja2 website:


Specifically for things like {%-   And   -%}
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAE9rU%2B6ZRHniu3cf-qqUMDjD5bqWeM4erwOtt2wVDThqBf9GYw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Matt Martz
@sivel
sivel.net

Reply all
Reply to author
Forward
0 new messages