[ZCM] [ZC] 1631/ 1 Request "TAL escaping of spaces"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Mon Dec 20 06:33:45 EST 2004


Issue #1631 Update (Request) "TAL escaping of spaces"
 Status Pending, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/1631

==============================================================
= Request - Entry #1 by andyv on Dec 20, 2004 6:33 am

The line:

<a tal:define="x string:one two"
   tal:attributes="href test?x=${x}">test</a>

will create a link to x=one%20two as expected. However:

<a tal:define="x string:one "
   tal:attributes="href test?x=${x}">test</a>

will generate a link to x=one rather than x=one%20

I can't think of reason why ending spaces should be stripped rather than escaped. Using 'quote' from the urllib library quotes the above string correctly.
==============================================================



More information about the Zope-Collector-Monitor mailing list