title: How to split text on two new lines with ruby
body: <p>In my RoR application, I have a text area and would like to split its content into separate paragraphs. The text has the following format:</p>
  
  <pre><code>Berlin.
  Rome.
  London.
  
  Paris.
  Warsaw.
  New York City.
  </code></pre>
  
  <p>When displayed, I would like to have it formatted in paragraphs like:</p>
  
  <pre><code>&lt;p&gt;Berlin. Rome. London.&lt;/p&gt;
  &lt;p&gt;Paris. Warsaw. New York City.&lt;/p&gt;
  </code></pre>
  
  <p>How to achieve that? I suppose I need to use split method but how to target two new lines?</p>