title: regex - replace multi line breaks with single in javascript
body: <p>this is some kind of variable content in javascript:
      </p>
  
  <pre><code>    &lt;meta charset="utf-8"&gt;
  
      &lt;title&gt;Some Meep meta, awesome&lt;/title&gt;
  
  
  
  
      &lt;-- some comment here --&gt;
      &lt;meta name="someMeta, yay" content="meep"&gt;
  
  &lt;/head&gt;
  </code></pre>
  
  <p>I want to reduce the multi line breaks (unknown number) to a single line break while the rest of the formatting is still maintained. This should be done in <code>javascript</code> with a <code>regex</code>.</p>
  
  <p>I have problems with the tabulator or to keep the format.</p>