New line characters are not deployed by the Metadata api.

Let's supposed you have a custom label in your org with this Value:

Line1
Line2

User-added image

When the value is added manually, you can see at the end of the first line a space. This is a hidden character for the end of line key. This is introduced also when adding the same content to a record in a text field.

When the value is added through a deployment, no matter if you are deploying with Copado, workbench or ANT, these character and the end of the line is not added. 

User-added image

If you go to the custom label and click edit and save, the end of line characters will be added without having to introduced the value again.

This seems to be the behaviour of the Salesforce metadata api. There is an idea for a similar issue with the end of line character at the end of the files.

https://trailblazer.salesforce.com/ideaView?id=08730000000kpRVAAY


How did we do?