[Zope3-checkins] CVS: Zope3/src/zope/tal - talinterpreter.py:1.14
Marius Gedminas
mgedmin@codeworks.lt
Tue, 8 Apr 2003 05:32:22 -0400
Update of /cvs-repository/Zope3/src/zope/tal
In directory cvs.zope.org:/tmp/cvs-serv17961
Modified Files:
talinterpreter.py
Log Message:
Fix whitespace normalization in TAL
=== Zope3/src/zope/tal/talinterpreter.py 1.13 => 1.14 ===
--- Zope3/src/zope/tal/talinterpreter.py:1.13 Mon Apr 7 18:27:17 2003
+++ Zope3/src/zope/tal/talinterpreter.py Tue Apr 8 05:32:21 2003
@@ -46,12 +46,13 @@
BOOLEAN_HTML_ATTRS = d
_nulljoin = ''.join
+_spacejoin = ' '.join
def normalize(text):
# Now we need to normalize the whitespace in implicit message ids and
# implicit $name substitution values by stripping leading and trailing
# whitespace, and folding all internal whitespace to a single space.
- return _nulljoin(text.split())
+ return _spacejoin(text.split())
class AltTALGenerator(TALGenerator):