Not your code, but match the indent:

    {% trans foo=a
                  bar=b %}
    {% endtrans %}