
Eigenschaftsänderungen: thirdparty
___________________________________________________________________
Name: svn:ignore
   - *.pyc

   + *.pyc
cherrypy
configobj
elixir
formencode
genshi
mochikit
nose
paste
pastescript
simplejson
sqlalchemy
sqlobject


Index: turbogears/command/i18n.py
===================================================================
--- turbogears/command/i18n.py	(Revision 5190)
+++ turbogears/command/i18n.py	(Arbeitskopie)
@@ -326,7 +326,7 @@
             key = None
             s = _py_i18n_re.search(k)
             if s:
-                key = s.group(1) or s.group(2)
+                key = (s.group(1) or s.group(2) or '').strip()
             elif not is_attribute:
                 # we don't have a kid expression in there, so it is
                 # "just" a text entry - which we want to be translated!
@@ -335,7 +335,7 @@
                 if isinstance(parts, list) and len(parts) > 1:
                     print "Warning: Mixed content in tag <%s>: %s" % (tag, k)
                 elif isinstance(parts, basestring):
-                    key = k
+                    key = k.strip()
             if key and (key not in keys) and (tag not in tags_to_ignore):
                 messages.append((tag, fname, key))
                 keys.append(key)

