Forum Discussion
CharlesDulaney
2 years agoQrew Trainee
Chayce,
Any thoughts on my secondary issue above? No matter what I do (text or HTML) I am getting linefeeds that I do not want.
HTML
Text is even worse
This all appears to associated with the IF/Else statements
further down the email, it functions properly with <br> and single linefeeds
------------------------------
Thank you so much,
v/r,
Chuck
------------------------------
DougHenning1
2 years agoCommunity Manager
You can suppress the line breaks in Jinja by adding a hyphen before the ending tag:
{# Duration between two dates -#}
{% if b.dur_1 > 0 -%}
Duration: {{b.dur_1 / 86400000}} Days
{% else -%}
No Duration
{% endif -%}
------------------------------
Doug Henning
------------------------------
- CharlesDulaney2 years agoQrew Trainee
Ahh nice, this works well.
------------------------------
Thank you so much,
v/r,
Chuck
------------------------------