I try to achieve to have a new line (carriage return) in the string result, but so far, I don't get this working.
This example just ignores the '\n'.
<t t-set="foo" t-value="foo_A+'\n'+foo_B"/>
I try to achieve to have a new line (carriage return) in the string result, but so far, I don't get this working.
This example just ignores the '\n'.
<t t-set="foo" t-value="foo_A+'\n'+foo_B"/>
You can use:
<t t-set="foo" t-value="foo_A+'<br/>'+foo_B"/>
Then, when you actually print that:
<t t-raw="foo"/>
But beware when doing this if variables come from untrusted sources, they could inject malicious code. Possibly a more secure alternative would be:
<t t-esc="foo_A"/><br/><t t-esc="foo_B"/>