Newlines are replaced by spaces

Thanks @wunder_wulfe,

and I'm sorry about this issue and I'll try to see it again (checking all our format functions (trimming, escaping...) , but you know this is not new (see our last November posts and the problem is not the XML (yes, we already saw then the problem of the returnCarriage or other control charst). The problem is what is their origin... I am not yet able to reproduce it.

What I mean is we can improve our functions, but maybe the cause is not Snap!

Because if somebody import a project modified by a text editor (maybe with unconscious changes, because that editor makes automatic changes on codification or indentation ...) or somebody drag and drop text from outside...
Then, we cannot control every possible scenario.
Codification changes (utf-8, iso..), strange characters... See for example this issue caused by a drag and drop action.

I continue, but if anybody could report som reproducible example (steps to cause the problem), and we can confirm it is not caused by a XML edition or a drag and drop action... it will help a lot.

Joan