title: How can I trim whitespace by Velocity
body: <p>I have a method called render_something  which can creates a lot of whitespace, for example:</p>
  
  <pre><code>&lt;a href="#"&gt;#render_something('xxx')&lt;/a&gt;
  </code></pre>
  
  <p>The result can be:</p>
  
  <pre><code>&lt;a href="#"&gt;     
  
             something that generate from redner_something
  
  
                &lt;/a&gt; 
  </code></pre>
  
  <p>Which actually I want it to be like this:</p>
  
  <pre><code>&lt;a href="#"&gt;something that generate from redner_something&lt;/a&gt;
  </code></pre>
  
  <p>Does velocity has something like this?</p>
  
  <pre><code>#trim(#render_something('xxx'))
  </code></pre>