You can trim whitespace surrounding a non-printing tag by adding hyphens (-) to the tag delimiters.
<%- — If the tag is indented, trim the indentation.
-%> — If the tag ends a line, trim the following line break.
and using them will make nginx configs look better. This is the current situation:
ERB supports space trimming (https://www.puppet.com/docs/puppet/5.5/lang_template_erb.html):
and using them will make
nginx
configs look better. This is the current situation: