We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02e64f8 commit ae86d77Copy full SHA for ae86d77
js/index.js
@@ -256,10 +256,17 @@ function downloadTable(table){
256
257
for(var i = 0; i < ta.length; i++){
258
for(var j = 0; j < ta[i].length; j++){
259
- if(j === ta[i].length - 1)
260
- csvArray.push("\"" + ta[i][j] + "\"");
261
- else
262
- csvArray.push("\"" + ta[i][j] + "\"" + separator);
+ if(ta[i][j].includes(getUserInput().columnSeparator)){
+ if(j === ta[i].length - 1)
+ csvArray.push("\"" + ta[i][j] + "\"");
+ else
263
+ csvArray.push("\"" + ta[i][j] + "\"" + separator);
264
+ } else {
265
266
+ csvArray.push(ta[i][j]);
267
268
+ csvArray.push(ta[i][j] + separator);
269
+ }
270
}
271
csvArray.push("\n");
272
0 commit comments