Omit extra newlines when combining and including templates.
Adjust the xfer/ns8/small.db.j2 so it doesn't trim the endline twice
(as that would join the two subsequent records on the same line).
(cherry picked from commit
4f8e3774bba0f63d98e651ef044d6703792921a2)
undefined=jinja2.StrictUndefined,
variable_start_string="@",
variable_end_string="@",
+ trim_blocks=True,
+ keep_trailing_newline=True,
)
# allow instantiating the template dataclasses in jinja2 templates when
# using {% set %}
{% for i in range(4096) %}
name@i@ 259200 A 1.2.3.4
name@i@ 259200 TXT "Hello World @i@"
-{%- endfor %}
\ No newline at end of file
+{% endfor %}