Importing HTML converts CR+LF or just LF to a space
When using the following code:
myTextArea.textFlow = TextConverter.importToFlow(someText, TextConverter.TEXT_FIELD_HTML_FORMAT, null);
with HTML like this (note CRLF is two characters; carrige return and linefeed, the newline sequence in Windows)
Just a test<br/>CRLF
Line 2<br/>CRLF
Line 3<br/>CRLF
I end up with HTML being displayed like this:
Just a test
<space>Line 2
<space>Line 3
I tried replacing the CRLF sequences with just LF (Unix style) and still the same occurs. If I remove all CR & LF characters then I get the expected output:
Just a test
Line 2
Line 3
The importer has somehow interpreted the CR/LF sequence as a space or non-breaking space. Is there a way to have the CR/LF dropped, or should I just continue to use a filter function that removes \r & \n characters before importing?. Is this a known issue?
I am using Flex 4.1 build 16076
