title: Remove empty lines from a string in ruby
body: <p>I've gone through other similar questions and they dont seem to explain my problem.</p>
  
  <p>My output ,right now is like this, I would like to remove empty lines from the string in ruby,</p>
  
  <pre><code>#    
  
  CIRRUS LADIES NIGHT with DJ ROHIT
  
  4th of JULY Party ft. DJ JASMEET @ I-Bar
  
  Submerge Deep @ Pebble | Brute Force (Tuhin Mehta) | DJ Arpan (Opening)
  
  Champagne Showers - DJs Panic &amp; Nyth @ Blue Waves
  
  THURSDAY PAST AND PRESENT @ Hint
  </code></pre>
  
  <p>and I want my output to be like this,</p>
  
  <pre><code>CIRRUS LADIES NIGHT with DJ ROHIT
  4th of JULY Party ft. DJ JASMEET @ I-Bar
  Submerge Deep @ Pebble | Brute Force (Tuhin Mehta) | DJ Arpan (Opening)
  Champagne Showers - DJs Panic &amp; Nyth @ Blue Waves
  THURSDAY PAST AND PRESENT @ Hint
  </code></pre>
  
  <p>I've tried <code>gsub /^$\n/,''</code> , <code>gsub(/\n/,'')</code> , <code>squeeze("\n")</code> and <code>delete! "\n"</code> to no avail.</p>
  
  <p>Also,I forgot to mention that my string starts with a blank line, the <code>#</code> denotes a blank line before the first line,if that would change anything.</p>
  
  <p>My String.inspect as requested,the content of the string has changed,though the issue is still the same.</p>
  
  <p><code>string.inspect :</code></p>
  
  <pre><code>"\n\n\t\t\t\t\t\t\t\t\t"
  "Tricky Tuesdays with DJ John @ Blend"
  "\n\n\t\t\t\t\t\t\t\t\t"
  "Bladder Buster Challenge with DJ Sean @ Star Rock"
  "\n\n\t\t\t\t\t\t\t\t\t"
  "Classic Rock Tuesday @ 10D - Chennai"
  "\n\n\t\t\t\t\t\t\t\t\t"
  "Vodka Night with DJ John @ Blend"
  "\n\n\t\t\t\t\t\t\t\t\t"
  "\"BOLLYWOOD WEDNESDAYS\" with DJ D Nash @ Candy Club"
  "\n\n\t\t\t\t\t\t\t\t\t"
  "RE - LAUNCH WEDNESDAY LADIES NIGHT @ ZODIAC"
  "\n\n\t\t\t\t\t\t\t\t\t"
  "Ladies Night @ 10 D - Chennai"
  "\n\n\t\t\t\t\t\t\t\t\t"
  "Wednesday Mayhem @ Dublin"
  "\n\n\t\t\t\t\t\t\t\t\t"
  </code></pre>