We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fced209 commit 828dd51Copy full SHA for 828dd51
1 file changed
libs/core/Converter.js
@@ -183,16 +183,13 @@ Converter.prototype.flushBuffer = function() {
183
resultJSONStr=JSON.stringify(resultRow);
184
}
185
this.emit("record_parsed", resultRow, row, index);
186
- if (this.recordNum > 0) {
187
- if (this.param.toArrayString) {
188
- this.push(",");
189
- }
190
- this.push(eol);
+ if (this.param.toArrayString && this.recordNum > 0) {
+ this.push("," + eol);
191
192
if (this._options && this._options.objectMode){
193
this.push(resultRow);
194
}else{
195
- this.push(resultJSONStr, "utf8");
+ this.push(resultJSONStr + eol, "utf8");
196
197
this.recordNum++;
198
0 commit comments