\n not working in Visual Builder
Summary
I have a JS function with the '\n' special character but it doesn't workContent
Hi guys I have this JS function:
FlowModule.prototype.armaDetalles = function(arrayIn) {
var vComments = "";
for (var i = 0; i < arrayIn.length; ++i) {
vComments += "COMENTARIO "+(i+1)+": " + arrayIn[i].commentStr + '\n';
}
return vComments;
};
This function splits an array into separate comments, the thing is that '\n' is not working to make a line jump between for example comment 1 and comment 2, etc. I have tried different characters but It doesn´t work. For some reason, Visual Builder puts a blank space in the '\n' place. Thank you very much!!
Tagged:
0