excel - Generating fields containing newline with Ruby CSV::Writer -


I want to create a line break within the quoted string for the CSV :: author:

  A, B, "Line Line", C  

so that the row will be displayed in Excel:

  A, B, Line, C line  

Is it possible to stop the CSV: Writing the new lines out of the author? If not, then will have to switch to the Fastest CSV to solve this problem?

Switching to Faster CSS will work.

From an IRB session:

  is required 'fastcsv' fast CSV. Open ("./trustfile.csv", "w"). CSV | CSV & LT; & Lt; ["Row", "ka", "csv \ nCSV", "data"] end  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -