Ask Your Question
2

SyntaxError: Translation blocks must not include other block tags

asked 2012-06-09 20:39:41 -0500

Basel Shishani gravatar image Basel Shishani
197 7 2 14

updated 2012-06-09 21:36:01 -0500

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?!

delete close flag offensive retag edit

Be the first one to answer this question!

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2012-06-09 20:39:41 -0500

Seen: 30 times

Last updated: Jun 09 '12