In case anyone was wondering about this, here's how I fixed the problem:
When the text is pulled in from the xml file, it seems like a "\n" is put in properly, but when displayed in the textfield, it doens't automatically interpret it as a new line.
So to fix it, I did the following (assuming the variable 'bodyText' has the text pulled into it from the XML file) :
*****
txt = bodyText.split("\\n");
bodyText = "";
for(i = 0; i < btxt.length; i++) {
bodyText += btxt[i] + "\n";
}
*****
you have to split the variable of all \n instances, but in the split, you must escape the backslash, so split("\\n") does the trick!
|