if you have an XML node and start type the .toXMLString()
function, hit enter from the dropDown/autocomplete option. You will
see that a "}" plus a line break were inserted as well!! Hope this
bug gets fixed before GA :-)
I forgot to mention that this behavior is reproduced inside
an ActionScript File that is linked to the main application .mxml
file through the <script> tag. The "}" plus the line break
are placed only for the first statement written in the AS file.
Thus your function will effectively have two closing brackets!!