Hi!
I got an content snippet in D365 Marketing in which I regulate the correct salutation. Here below is the code:
{{#if (eq contact.gendercode 1)}}
Sehr geehrter Herr {{contact.bbg_amtstitel}} {{contact.bbg_akadtitelprefix}} {{contact.lastname}} {{contact.bbg_akadtitelpostfix}},
{{else if (eq contact.gendercode 2)}}
Sehr geehrte Frau {{contact.bbg_amtstitel}} {{contact.bbg_akadtitelprefix}} {{contact.lastname}} {{contact.bbg_akadtitelpostfix}},
{{else}}
Sehr geehrte Damen und Herren,
{{/if}}
this works perfectly fine, yet if the person got no title postfix, the e-mail is displayed with a whitespace. I read the documentation about the white space control but I am not sure how to apply it on my liquid code since it differs.
Here is a screenshot of the salutation with the space:

Thanks!