I got this problem, when edit my xml everything on a next line renders two breaklines
<![CDATA[Line one Line two Line three ]]>
Renders in flash as
Line One Line Two Line Three
Now I researched this before and it had something to do with hidden breakline characters, Im using Flexbuilder and or Aptana to edit the xml, but how do I avoid having two breaklines when I want one.
Flash interprets both
\rand\nas new line characters. If your input contains windows line endings (\r\n), then you see a blank line in the output.To solve your problem, use the following regex to replace two consecutive occurrences of
\rand\nwith one before you output your data.Actually it is unlikely that
\n\rever occurs, but since we are already replacing, we can fix these invalid line endings as well.