On Wed, Jun 28, 2006 at 02:13:33PM -0400, Chas Emerick wrote:
> First, thanks to all that make kid possible -- it's a great tool for
> this TAL refugee.
>
> We're nearing production for our new website, which uses kid
> throughout. I was tinkering with stripping whitespace from template
> output by setting kid.serialization.Serializer.whitespace_filter to
> True.
>
> However, I noticed that nonbreaking spaces (specified using  )
> were being stripped as well, which I didn't expect. Changing this
> line in Serializer.whitespace_filter:
>
> yield (TEXT, item.strip())
>
> to this:
>
> yield (TEXT, item.strip(' \n\r\t'))
>
> Results in output that is much more in line with what I would expect
> from whitespace stripping.
>
> I just thought I'd throw this out as an idea.
> Very interesting...I have never come across this. I don't think I'd want to make a change unless there is a compelling reason to do so. OTOH I am not sure that the whitespace filter should be on by default. Thanks for the heads up! David Stanek -- http://www.traceback.org GPG keyID #6272EDAF on http://pgp.mit.edu Key fingerprint = 8BAA 7E11 8856 E148 6833 655A 92E2 3E00 6272 EDAF
pgp3dhqICWtpP.pgp
Description: PGP signature
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ kid-template-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/kid-template-discuss
