Skip to content

Commit

Permalink
terminate lines correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
gradus committed Mar 2, 2012
1 parent 94caecf commit 815ec08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/jsoncsv.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions src/jsoncsv.coffee
Expand Up @@ -26,17 +26,12 @@ class JsonCsv extends require('events').EventEmitter
line += "," if field == null or field == undefined
else
line += json[i][index] + "," if json[i][index] != undefined
line += '\r\n'
i = i + 1
line += '\r\n'

line.slice 0, line.Length - 1
csv += line + "\r\n"
return cb(null, csv)


module.exports = new JsonCsv()






0 comments on commit 815ec08

Please sign in to comment.