mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Preserve newlines in jsonata expression via tabs
This commit is contained in:
		| @@ -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")); | ||||
|                     } | ||||
|                 }) | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user