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.
Thanks again,
Chas Emerick
Founder, Snowtide Informatics Systems
Enterprise-class PDF content extraction
[EMAIL PROTECTED]
http://snowtide.com | +1 413.519.6365
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