Hello,
I’m scheduling a marketing email and want to use rich text contact properties. When I hit “Preview as a specific contact” with contacts that I now have a value in their rich text contact property, I notice the email adds a line break right after this specific personalisation token (only the ones that include rich text contact properties). There is no line break in any of the values in these rich text contact properties.
Is it possible to avoid this? Can I do something to fix this?
Thank you!
Hi @MLinardou !
It seems like HubSpot is automatically inserting a line break after a rich text contact property when using personalization tokens in your marketing email. This could be due to Rich Text Formatting – Even if the rich text field doesn’t appear to have extra spaces or line breaks, the underlying HTML structure may include < p >, < br >, or other block-level elements.
I did a test on my end and I didn’t get the line break - however would for sure recommend the following troubleshoot:
In your marketing email select the personalization token and click under more and source code - follow the screenshot below to locate the item:
Then check if the rich text property is wrapped in < p >or < div > tags and try wrapping the personalization token in an inline tag like < span >.
Otherwise you can use a test contact and place a different text in the property and test preview to see if this persists - I think its all related to the formatting of the text because as I mentioned before I tried this on my end and it works fine.
Hope this helps!
Carolina De Mares
Brandgang
Goirkekanaaldijk 14
5046 AT Tilburg