cleaning mysql text from line breaks
<p>How would you go about removing extra line breaks for example:</p>

<pre><code>text text text


text text
</code></pre>

<p>And i would like it to be this way</p>

<pre><code>text text
text
</code></pre>

<p>i am already using nl2br($desc) in order for the line breaks to appear at all 
now how to i limit them to 1 </p>
