1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Preserve newlines in jsonata expression via tabs

This commit is contained in:
Nick O'Leary 2016-11-16 13:44:45 +00:00
parent 26f5305593
commit 8caee09ea4

View File

@ -104,9 +104,9 @@
expand:function() {
var that = this;
RED.editor.editExpression({
value: jsonata.format(this.value()),
value: this.value().replace(/\t/g,"\n"),
complete: function(v) {
that.value(v.replace(/\s*\n\s*/g," "));
that.value(v.replace(/\n/g,"\t"));
}
})
}