CSV : add warn when unpaired quotes detected on input.

helps handling now that we allow line breaks within fields (as per spec).
This commit is contained in:
Dave Conway-Jones
2020-05-04 14:17:11 +01:00
parent efb9dce92f
commit e2aebaf0e7
2 changed files with 3 additions and 2 deletions

View File

@@ -213,7 +213,7 @@ module.exports = function(RED) {
}
}
// Finished so finalize and send anything left
//console.log(j,k,o,k[j]);
if (f === false) { node.warn(RED._("csv.errors.bad_csv")); }
if (!node.goodtmpl) { node.template[j] = "col"+(j+1); }
if ( node.template[j] && (node.template[j] !== "") ) {