What happens when leading and trailing spaces are removed.
If you have a template with two variables such as shown below:
and your import variables are var1 = 'Hello ' (with a trailing space!) and var2 = 'world!'. This will result in:
instead of the expected result
Why is this?
We intentionally remove leading and trailing spaces from text fields. This is because leaving them in can have unwanted extra padding when using that data via personalization calls within Tables for example.
If you require any padding between personalization values, you simply put this into the template. For example: