Adding a newline character within a cell (CSV)

前端 未结 5 788
执笔经年
执笔经年 2020-12-05 12:54

I would like to import product descriptions that need to be logically broken according by things like description, dimensions, finishes etc. How can I insert a line break s

5条回答
  •  [愿得一人]
    2020-12-05 13:46

    I struggled with this as well but heres the solution. If you add " before and at the end of the csv string you are trying to display, it will consolidate them into 1 cell while honoring new line.

    csvString += "\""+"Date Generated: \n" ; 
    csvString += "Doctor: " + "\n"+"\"" + "\n"; 
    

提交回复
热议问题