What happens when leading and trailing spaces are removed.
Overview
If you have a template with two variables such as shown below:
%%var1%%%%var2%%
and your import variables are var1 = 'Hello ' (with a trailing space!) and var2 = 'world!'. This will result in:
Helloworld!
instead of the expected result
Hello world!
Why is this?
Resolution
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:
%%var1%%%%var2%%
Will become:
%%var1%% %%var2%%