Closed daniel-zahariev closed 6 years ago
+1
Would the fix be as simple as removing the space on that line? Or would that break the BOM?
@knownasilya removing the space won't break the BOM and it's as simple as just deleting it from this string.
I guess the question is, why was it not caught in the test, https://github.com/zemirco/json2csv/blob/master/test/index.js#L720
Feel free to submit a PR with modified test
Any reason why this is still open?
Good catch
When adding BOM to the CSV output there's an extra space character. This makes Excel show the first cell with quotes.
Code sample
CSV output