HubSpot "Aha-Moments"

Still love this thread. Wish more people would hop on. Just discovered this one:

Did you know that when using personalization tokens in marketing email (maybe even in templates, landing pages, etc.; untested) that need to display line-by-line, following the token with a <br> tag will return a blank, broken line when the property is empty … but enclosing it in <p></p> tags will not!

Example:

Say you have three contact properties, but your contact only has a value in two of them — 1 and 3:

If you use <br> in the following sequence (e.g. a list of products by usage, a signature line with contact info, etc.) …

{{ contact.token1 }}<br>
{{ contact.token2 }}<br>
{{ contact.token3 }}<br>​

… the result will be:

Token 1

Token 3​

But, if you use <p>token</p> instead …

<p>{{ contact.token1 }}</p>
<p>{{ contact.token2 }}</p>
<p>{{ contact.token3 }}</p>​

… it returns, seamlessly:

Token 1
Token 3

W00T! This allows you to load in as many properties as you need without uneven, distracting spaces. Glee.

Enjoy!