I am afraid, this patch won't be applied. It makes user to escape every \ symbol which is unpascalish.
Better to remove handling of \n in Content field at all. In this case users will need to use 'LineEnding' constant in order to get multilined string. Such a patch WILL be applied.
It makes user to escape every \ symbol which is unpascalish.
no only \n escape to \n if not need line feed, otherwise, the behavior remains the same
It makes user to escape every \ to \\ оr \\
I think this option is the only one that will keep the old code working
That's the point, the change is already backwards incompatible. Moreover, users will need to review their strings and escape '' if 'n' is present after it if needed. In practice it will be easier to always escape '' as it will not be always possible to predict if 'n' will follow '' or not.
The current behavior is considered buggy and we don't want it to be default, so there is simply no backwards compatible way out, because users may rely on it. So better to bite the bullet and remove handling of \n in Content field at all. Inserting newlines will be achieved using LineEnding constants then.