Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

i18n: fixed bug in the templateize function to turn templates into so…

…mething grokable for xgettext

git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@852 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b61aee47fc632730ac4cbfccdc6961e743be5dc1 1 parent b34e844
Georg Bauer authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/bin/make-messages.py
View
2  django/bin/make-messages.py
@@ -48,7 +48,7 @@ def templateize(src):
start = src.find('{')
if start >= 0 and src[start+1] in ('{', '%'):
o.append(blank(src[:start]))
- end = src.find(src[start+1] == '{' and '}' or '%', start)
+ end = src.find(src[start+1] == '{' and '}}' or '%}', start)
if end >= 0:
o.append(src[start:end+2])
src = src[end+2:]
Please sign in to comment.
Something went wrong with that request. Please try again.