title: How to remove extra whitespace in a ruby template from puppet
body: <p>I want to put a few values in a file using puppet, but when I do the following in a ruby template:</p>
  
  <pre><code>    &lt;% @_zoo_cfgs.each do |zooconfig| -%&gt;
      &lt;%=zooconfig -%&gt;
      &lt;% end -%&gt;
  </code></pre>
  
  <p>I get the below content in the generated file:</p>
  
  <pre><code>server.1=a1-dev-mem333.lab.lynx-connected.com:2888:3888(trailing whitespace)
  </code></pre>
  
  <p>But I want the below content:</p>
  
  <pre><code>server.1=a1-dev-mem333.lab.lynx-connected.com:2888:3888(no trailing whitespace)
  </code></pre>
  
  <p>with no extra whitespace in the file before or after the value. Could anyone please let me know how could this be done?</p>