title: Importing CSV with line breaks in Excel 2007
body: <p>I'm working on a feature to export search results to a CSV file to be opened in Excel.  One of the fields is a free-text field, which may contain line breaks, commas, quotations, etc.  In order to counteract this, I have wrapped the field in double quotes (").</p>
  
  <p>However, when I import the data into Excel 2007, set the appropriate delimiter, and set the text qualifier to double quote, the line breaks are still creating new records at the line breaks, where I would expect to see the entire text field in a single cell.</p>
  
  <p>I've also tried replacing CR/LF (\r\n) with just CR (\r), and again with just LF (\n), but no luck.</p>
  
  <p>Has anyone else encountered this behavior, and if so, how did you fix it?</p>
  
  <p>TIA,<br>
  -J</p>
  
  <p><strong>EDIT:</strong><br>
  Here's a quick file I wrote by hand to duplicate the problem.</p>
  
  <blockquote>
    <p>ID,Name,Description<br>
    "12345","Smith, Joe","Hey.<br>
    My name is Joe."</p>
  </blockquote>
  
  <p>When I import this into Excel 2007, I end up with a header row, and two records.  Note that the comma in "Smith, Joe" is being handled properly.  It's just the line breaks that are causing problems.</p>