  | |  | Line break troubles | Line break troubles 2004-03-07 - By ryanm
Back I have some content being loaded in from XML, and I'm losing my line breaks. Now, obviously, since ignoreWhitespace is set to true, actual linebreaks will be ignored. But when I try to put a \n in the content to cause a linebreak in the text field where the content is displayed, it simply prints it in there as \n instead of as a line break. This is just a string in a non-HTML text field, shouldn't \n cause a line break? Or do I need to do something to the string to get it to recognize those as line breaks? I've tried xml.attribute.attribName.toString(), but that didn't help any.
ryanm
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106255 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |