Skip to main content
December 4, 2014
Question

Line break inside a token for text-only content

  • December 4, 2014
  • 2 replies
  • 1683 views
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.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

December 5, 2014
Have you tried using a <br> tag?
December 5, 2014
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.