If I see it correctly, this is just a correction of the indentation, right?
Whilst you're at it, can you change this `{% endif %}\n{% if ...` to `{% elif ...`?