In my project, one can do the following steps, which I'm unsure it is the expected behaviour.
•In a multiline TextArea, change the LineSpacing (say, to 2);
•Type some text, preferably having several lines;
•Select all and copy;
•Close the window and restart (either recompile the app or re-open another instance of the window), making sure the TextArea keep its default LineSpacing of 1 (e.g. this would be the next time the user uses the application);
The pasted text appears much like it was when it was copied, minus the LineSpacing difference.
Now, open TextEdit and paste the same text: the LineSpacing is set accordingly.
I understand there may be cases where one behaviour (or the other) may be wanted, although I guess the way TextEdit works is probably “more often expected”.
One could store the LineSpacing of the source TextArea in the clipboard, using RawData, but if the user pastes in TextEdit and copy from there, this RawData gets lost anyway.
Strangely, I couldn't find a related question in Feedback, in this forum or elsewhere on the Internet (searching for Xojo only).
What's the “expected” behaviour and why?