Jinja Whitespace control

I'm using a single line jinja block in a templated configuration file.
Jinja is stripping the newline character at the end of this block
causing the next line to be collapsed thus breaking the configuration
file.

I assume I could set some global jinja options in the ansible.config
file, but I want to control the whitespace on a per-usage basis. But
Jinja (or Ansible, not sure which) is breaking when I try to use the
+/- control characters that Jinja documents
(http://jinja.pocoo.org/docs/templates/#whitespace-control) for this.
I get a "tag name expected" error from the template module.

Am I doing something wrong or is this not allowed?

ansible loads jinja2 with trim_blocks = true, you can use a per template header to override this, you can see an example in the template docs.​

https://docs.ansible.com/template_module.html

Thanks, I put this at the top of my template and everything worked perfectly.

#jinja2:trim_blocks: False