You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

\n not working in Visual Builder

edited Jan 23, 2020 8:31PM in Visual Builder 2 comments

Summary

I have a JS function with the '\n' special character but it doesn't work

Content

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:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!