Saving as CSV through google script handling newline characters

后端 未结 1 568
天涯浪人
天涯浪人 2021-01-15 18:26

So I\'m attempting to take a sheet from a Google Spreadsheet and save it as a .CSV file just like you can manually do. It is working fairly well, but I\'ve ran into an issue

相关标签:
1条回答
  • 2021-01-15 18:53

    Instead of .replace(/(\r\n|\n|\r)/g," ") try .replace("\n", " ").replace("\r", " "), I know it's essentially the same, but I'm currently using this solution without hiccups.

    0 讨论(0)
提交回复
热议问题