Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
authored October 13, 2005

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/bin/make-messages.py
2  django/bin/make-messages.py
@@ -48,7 +48,7 @@ def templateize(src):
48 48
         start = src.find('{')
49 49
         if start >= 0 and src[start+1] in ('{', '%'):
50 50
             o.append(blank(src[:start]))
51  
-            end = src.find(src[start+1] == '{' and '}' or '%', start)
  51
+            end = src.find(src[start+1] == '{' and '}}' or '%}', start)
52 52
             if end >= 0:
53 53
                 o.append(src[start:end+2])
54 54
                 src = src[end+2:]

0 notes on commit b61aee4

Please sign in to comment.
Something went wrong with that request. Please try again.