title: Python: Replace, rstrip() not able to remove newlines
body: <p>I've got a spreadsheet of information (UTF-8 CSV file being read in by the csv module) that contains information for a large number of products that need to go into an inventory db. I'm trying to setup descriptions from newlined rows of text to a html list tags.</p>
  
  <p>The issue I'm having is that the following lines fail to replace the newline character in the string:</p>
  
  <pre><code>line[2] = "&lt;ul&gt;&lt;li&gt;" + line[2]
  line[2].replace('\n', '&lt;/li&gt;&lt;li&gt;')
  line[2] += "&lt;/li&gt;&lt;/ul&gt;"
  </code></pre>
  
  <p>The string continues to contain newline characters even when the second line is replaced by:  </p>
  
  <pre><code>line[2] = line[2].rstrip()
  </code></pre>
  
  <p>What is going on, and what am I messing up? =)</p>