title: puppet erb extra newline
body: <p>I have a puppet template that is adding an extra newline on each iteration of the inner loop.  The template is as follows:</p>
  
  <pre><code>;; THIS FILE IS MANAGED BY PUPPET
  ; &lt;%= @comment %&gt;
  
  [production]
  &lt;%-
  @data.sort.map do |provider,attributes|
      @data[provider].sort.map do |key,value| -%&gt;
  &lt;%= provider %&gt;.&lt;%= key %&gt; = "&lt;%= value %&gt;"
  &lt;%- end
  end -%&gt;
  </code></pre>
  
  <p>The output is something along the lines of:</p>
  
  <pre><code>;; THIS FILE IS MANAGED BY PUPPET
  ; Some random config file
  
  [production]
  
  provider1.a="1"
  
  provider1.a="2"
  
  provider1.a="3"
  
  provider2.a="4"
  
  provider2.a="5"
  
  provider2.a="6"
  </code></pre>
  
  <p>As far as I can tell, that template should be suppressing the additional newlines.  Am I missing something?</p>