Line break

Hi all,
I’ve read several posts about line break, markdown, etc. I’m sure I’ve seen the answer here in the past, but cannot find it now.
When building a template, we don’t always know if we would populate all mapped items. How can we add line breaks into the mapped value, so that we won’t get extra line breaks when the said mapped value isn’t populated?
Here’s an example:
Let’s assume we’d like to reach a template output of:

first
third

image

Here’s what happen when we don’t have any value at column “2”.
image

As you can see, we have an extra blank line which represents the missing mapped value of “2”.

image

I seem to recall the solution being something like this:
image

But when I try to add the line break (\n), it’s not treated as a line break.
image

Tried “Rich Text” component and still no joy:

Also tried a rich text column
image

Same result:

What am I missing?

I think what I would do is:

  • First create an array of the columns involved using a MakeArray column.
  • Then create a joined list from the MakeArray column, using a new line as a separator
  • And then use that joined list in place of your template column.
4 Likes

Clever!