[Zope3-checkins] CVS: Zope3/src/zope/tal - talinterpreter.py:1.12
Fred L. Drake, Jr.
fred@zope.com
Mon, 7 Apr 2003 13:02:52 -0400
Update of /cvs-repository/Zope3/src/zope/tal
In directory cvs.zope.org:/tmp/cvs-serv13658
Modified Files:
talinterpreter.py
Log Message:
When determining a msgid from a default value, normalize the whitespace
only for the msgid, not the default value. This corrects a bogus treatment
of the default value in the implementation.
=== Zope3/src/zope/tal/talinterpreter.py 1.11 => 1.12 ===
--- Zope3/src/zope/tal/talinterpreter.py:1.11 Fri Apr 4 16:41:30 2003
+++ Zope3/src/zope/tal/talinterpreter.py Mon Apr 7 13:02:22 2003
@@ -523,9 +523,9 @@
# We only care about the evaluated contents if we need an implicit
# message id. All other useful information will be in the i18ndict on
# the top of the i18nStack.
- default = normalize(tmpstream.getvalue())
+ default = tmpstream.getvalue()
if msgid == '':
- msgid = default
+ msgid = normalize(default)
self.i18nStack.pop()
# See if there is was an i18n:data for msgid
if len(stuff) > 2: