title: Return a String with newlines inserted
body: <p>I have a function that returns HTML code that another file picks up and uses. However, the code is returned in one big paragraph, and I need it to be separated into appropriate lines. This is easy enough with print, but I need to return it that way in order for the next file to pick it up.</p>
  
  <p>Output right now:</p>
  
  <p><code>'&lt;abbr title = 6 style="font-size: 800%"&gt;spam&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;&lt;abbr title = 5 style="font-size: 800%"&gt;page&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;&lt;abbr title = 4 style="font-size: 800%"&gt;penguin&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;&lt;abbr title = 2 style="font-size: 800%"&gt;stem&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;&lt;abbr title = 1 style="font-size: 800%"&gt;has&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;&lt;abbr title = 1 style="font-size: 800%"&gt;love&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;&lt;abbr title = 1 style="font-size: 800%"&gt;these&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;&lt;abbr title = 1 style="font-size: 800%"&gt;spamming&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;&lt;abbr title = 1 style="font-size: 800%"&gt;spammer&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;&lt;abbr title = 1 style="font-size: 800%"&gt;your&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;&lt;abbr title = 1 style="font-size: 800%"&gt;webpage&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;&lt;abbr title = 1 style="font-size: 800%"&gt;program&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;&lt;abbr title = 1 style="font-size: 800%"&gt;stemming&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;&lt;abbr title = 1 style="font-size: 800%"&gt;stemmer&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;&lt;abbr title = 1 style="font-size: 800%"&gt;were&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;&lt;abbr title = 1 style="font-size: 800%"&gt;word&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;&lt;abbr title = 1 style="font-size: 1600.0%"&gt;by&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;'</code></p>
  
  <p>Desired output:</p>
  
  <p><code>&lt;abbr title = 6 style="font-size: 800%"&gt;spam&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;</code></p>
  
  <p><code>&lt;abbr title = 5 style="font-size: 800%"&gt;page&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;</code></p>
  
  <p><code>&lt;abbr title = 4 style="font-size: 800%"&gt;penguin&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;</code></p>
  
  <p>etc.....</p>
  
  <p>Here's the function I'm using:</p>
  
  <pre><code>def mtcURL(URL):
  a = getURL(URL)
  COUNT = a[0]
  WORD = a[1]
  NUMBER = 800
  i = 0
  all_lines = ""
  
  while i &lt; len(a[1]):
      if i == len(COUNT)-1:
          ratio = COUNT[i] / 2
          NUMBER = NUMBER / (ratio)
      else:
          try:
              ratio = COUNT[i]/COUNT[i+1]
          except IndexError:
              pass
      first = '&lt;abbr title = '
      second = 'style="font-size: '
      third = '%"&gt;'
      fourth = '&lt;/abbr&gt; &amp;nbsp; &amp;nbsp;'
      htmlLine = first + str(COUNT[i])+ ' ' + second + str(NUMBER)+ third + WORD[i] + fourth    
      all_lines += htmlLine
      i += 1
  return all_lines
  </code></pre>