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
Post a Comment