I am trying to create a program that will output an XSL file. Below is the code I am trying to use the '\n' does not actually create a new line, and the next value is put next to it. Am I doing something wrong?
var TheTextBox = document.getElementById("output");
countOfAdd += 1;
if (countOfAdd > 1){
TheTextBox = "";
countOfAdd = 1;
}
else if (countOfAdd == 1){
//where all of the xsl output will be
//line 1
TheTextBox.value = TheTextBox.value + '<?xml version="1.0"?>' + '\n';
//line 2
TheTextBox.value = TheTextBox.value + '<!-- Sets up the stylesheet and declares the :xfa function in case you want to globalize fields -->';
EDIT: I have already tried the br HTML field but due to this being a textbox I am adding to it simply includes it in the output
EDIT 2: My example does not work already. Not sure why but the text field simply ignore the \n completely.
`, not `\n`? – nicael Dec 17 '15 at 14:16
as well, simply adds
to the text field – renegade_ghost Dec 17 '15 at 14:20