Remove empty spaces

Hey,

I have a text element that if it´s 100% complete, it would be displayed like this:

a
b
c
d

e
f

But some users leave some fields blank (for example, c), so it displays like this:

a
b

d

e
f

And I need to respect the line breaks I have, but don´t have a line break if a field is empty, like this (c is empty):

a
b
d

e
f

How can I achieve this?

Thanks in advance :slightly_smiling_face: :computer:

@hacker

What an interesting use case.

Ugly solution > Trash the text element and replace it with a nested RG where you can conditionally show the rows?

Thanks, @cmarchan, that can be a solution.

Although, I saw this answer and it solves the problem. The only difference is that I need the text to be in a Text element, not in an HTML element

1 Like

Can this be possible with regex or something?

This topic was automatically closed after 70 days. New replies are no longer allowed.