Linebreak in string variable

3
I have created a document with a string variable. This variable has possibly 1/2/3 lines. Lines 2 and 3 are written by a loop. I don't use no widgets for the text. Which code can I use for a new line? HTML Codes like: br, \n, \r\n\, 'enter' don't work!
asked
5 answers
4

You make your string in a microflow. I imaging your first iteration does:

string x = "first line"

What you have to do for the second line is

x = x + "
second line"

Note(!) the line-break in my second statement. HTML / HTML entities e.t.c. is not supported yet, you have to make a real line break in your variable change action.

N.b.: There is already a feature request in our Partner Portal for a HTML widget in document templates.

answered
3

see this question or this question

answered
2

'%0A' don't work either!

answered
1

Nothing works! newline, etc!

answered
1

I had the same problem when building an email message for an external link with HTML mailto:...

Use 'First line' + '%0A' + 'Second line'. This should work.

answered