Re: Line break inside a token for text-only content

Anonymous
Not applicable

Line break inside a token for text-only content

Hi there,

We are making REST call scheduleCampaign, passing a token with value of text-only version of an email.  We embedded "\n"s inside the token value for line break.  For example:

"Line 1\nLine2"

When the email being sent out, the "\n" characters were not being interpreted such that it became

"Line 1 Line 2"

We have tried both "Rick Text" and "Text" token.

Is this doable?

As the email content is being generated, we cannot pre-determine the number of tokens we need so we cannot use separate tokens for each line.

Thanks.
Tags (1)
2 REPLIES 2
Anonymous
Not applicable

Re: Line break inside a token for text-only content

Have you tried using a <br> tag?
Anonymous
Not applicable

Re: Line break inside a token for text-only content

Hi Murtza,

I just tried putting <br> tag, but it was just being sent our as-is instead of being interpreted as line break.

Thanks.