[Zope3-checkins] CVS: Zope3/src/zope/tal - talinterpreter.py:1.14
Fred L. Drake, Jr.
fred@zope.com
Tue, 8 Apr 2003 09:51:29 -0400
Marius Gedminas writes:
> Fix whitespace normalization in TAL
...
> +_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())
That'll teach me to optimize without running the regression tests!
Argh! ;-(
Sorry about that.
-Fred
--
Fred L. Drake, Jr. <fred at zope.com>
PythonLabs at Zope Corporation