Text Only version contain extra whitespaces | Community
Skip to main content
Luis_Dalmolin
New Participant
September 30, 2019
Solved

Text Only version contain extra whitespaces

  • September 30, 2019
  • 2 replies
  • 3205 views

Hi there.

I'm using Marketo's API to create my templates & emails, and everything is working as I would expect. But, when I go to the created email in Marketo, the text-only version contain a lot of whitespaces between my sections.

Here's the HTML I have: email.html · GitHub 

I tried to update the text-only version via API, but apparently this API does not exist. 

Does anyone have any suggestions on how my text-only version can look better? This is how it is currently looking:

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Luis_Dalmolin

I was able to deal with this issue by removing extra whitespaces and indentation of the HTML before sending to Marketo.

2 replies

Luis_Dalmolin
Luis_DalmolinAuthorAccepted solution
New Participant
October 3, 2019

I was able to deal with this issue by removing extra whitespaces and indentation of the HTML before sending to Marketo.

SanfordWhiteman
New Participant
October 3, 2019

Yep.

Akshay_Pant1
New Participant
October 1, 2019

Hi @Luis Dalmolin‌,

There is no way to update the text version of the email.

You have to update manually by clicking the text editor section in the email.

Thanks

Akshay

Luis_Dalmolin
New Participant
October 1, 2019

Right, thanks. And you know if there's anything I can do in my HTML to avoid the multiple whitespaces when Marketo copies from the HTML? This will be completely automated so people won't really go and manually change the text-only version.

SanfordWhiteman
New Participant
October 1, 2019

Does that whitespace (i.e. true CRLF, not HTML <br>) exist in the original? If so then you can't expect Marketo to know that it's "extra" and not important. You should strip out any whitespace that's ignored in HTML that you don't want in the text version.