Closed estanglerbm closed 1 year ago
I fixed the compiler issue where it incorrectly detected {
and }
as data binding inside CDATA. The missing new lines are because the MX TextArea
component in Royale has [CollapseWhiteSpace]
metadata on the text
property. If you think that's wrong, it'll need to be handled on the royale-asjs side. The compiler is handling [CollapseWhiteSpace]
correctly.
Hmmm... actually, MX TextArea
in the Flex SDK also has [CollapseWhiteSpace]
.
So it looks like whitespace is collapsed except when it is contained within CData.
When using CDATA for literals that contain something that looks like data binding (i.e. {sum}), getting error:
Also (if you replace the problematic part with normal text), newlines are being lost (Flex preserves them).
TestLiteralsFlex.mxml.txt TestLiterals.mxml.txt