First time here? Check out the FAQ!

Revision history  [back]

SyntaxError: Translation blocks must not include other block tags

Last night I pulled the latest dev master from Github (commit fabb3a), and when I tried jinja2-makemessages, I got the error "SyntaxError: Translation blocks must not include other block tags: ..." on two template files:

skins/default/templates/email/macros.html
skins/default/templates/email/post_as_subthread.html

There is no block tag issues to my eye, but the errors went away when I removed the minus signs in the {%- endtran %} and {%- pluralize %} tags.

So it seems that jinja2-makemessages is getting confused over the whitespace control minus signs in the tags - is there such an issue?!

SyntaxError: Translation blocks must not include other block tags

Last night I pulled the latest dev master from Github (commit fabb3a), and when I tried jinja2-makemessages, I got the error "SyntaxError: Translation blocks must not include other block tags: ..." on two template files:

skins/default/templates/email/macros.html
skins/default/templates/email/post_as_subthread.html

There is no block tag issues to my eye, but the errors went away when I removed the minus signs in the {%- endtran %} and {%- pluralize %} tags.

So it seems that jinja2-makemessages is getting confused over the whitespace control minus signs sigens in the tags - is there such an issue?!