The Xojo bug is not serializing correctly what you pasted, the 0A was thrown away. I already explained that above somewhere. The ReplaceLineEndings works because 0D is a Mac legacy valid EOL.
I think the point is, for the majority, EOL characters are (and should be) a non-issue. Where it is an issue (as in the OP’s use case), it’s up to us as programmers to deal with it.
I’ll point out that the people who posted opinions here, including the OP, have been using Xojo for years without noticing or being bothered by this. And changing it now might lead to broken code.
If you disagree, I invite you to file Feedback. It entirely possible that the engineers will agree for some reason I can’t fathom.
