howto remove empty lines in an adress

for example:

Company
name
adress
city postalcode

What if name is empty, is there a standard/buildin function to remove empty lines?

If you group all your address elements inside a single script with a suffix set to <br />? (when appropriate), then the entire address will be formatted properly since empty lines followed by a <br/> do not trigger a line feed.

You address block should look something like this:

sorry, wrong subject

Normally this works, but ran into this instance where it is not working as I expected.

Added the <br/> which I expected would work.

But the <br/> are considered literal strings

image

This is what the script is doing underneath the hood.

image

Running version 2021.1.2.2832

They set the output to text for some reason. After changing it to HTML it works. :wink: