This is not an option for us because we don’t know the number of lines when building the HTML template

I tried another way:

My HTML template contains

I tried to include breakline usign the java string : n
But this fails also...

Does this means that you are also escaping "n" or did I miss something ?