wdavidw/node-csv-parser — pull request #34 by eladb (2012-07-01 06:51:17+00:00)
Title: Fallback writeOptions.lineBreak not consistent

When using `csv` without a source (only to generate a CSV output), the `lineBreaks` option [falls back](https://github.com/wdavidw/node-csv-parser/blob/b8be8163badb857f3ea1f8066a7b38a248f214ed/lib/csv.js#L417) to `\r` (old mac).

When an `Array` source is used, `lineBreaks` [falls back](https://github.com/wdavidw/node-csv-parser/blob/b8be8163badb857f3ea1f8066a7b38a248f214ed/lib/csv.js#L77) to `\r\n` (windows).

This change makes this consistent to `\r\n'. I would have used `\n` but now we are getting philosophical...

BTW, mac today is also using `\r` since it is now a UNIX variant (BSD), so I'm not sure using the term `mac` makes a lot of sense.