Skip to content

Commit

Permalink
back to comma delimited
Browse files Browse the repository at this point in the history
  • Loading branch information
khinlatt committed Nov 16, 2015
1 parent 9714f31 commit 1a219c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/csv_export_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ function toString(data, keys) {
var dataString = "";
if (data.length === 0) return dataString;

dataString += keys.join('\t') + '\n'
dataString += keys.join(',') + '\n'

data.map(function(row) {
keys.map(function(col) {
var cell = row[col] ? row[col] : "";
dataString += row[col] + '\t';
var cell = row[col] ? ('"'+row[col]+'"') : "";
dataString += cell + ',';
});

dataString += '\n';
Expand Down

0 comments on commit 1a219c6

Please sign in to comment.