Zope2 Products.PageTemplates.ZopePageTemplate regression in 2.12+

Chris Withers <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
Hi All,

The pt_edit method of the ZopePageTemplate appears to have sprouted a 
string.strip() as its first line.

While I'm use this is fine for xml and html templating, it's 
unacceptable for text/plain templates.

This appears to have been introduced here:

http://zope3.pov.lt/trac/changeset/65525/Zope/trunk/lib/python/Products/PageTemplates/ZopePageTemplate.py

Prior to that, the base PageTemplate's pt_edit method was used, which 
did no stripping.

So:

- does anyone care about this?

- if I remove that .strip(), what tests should I run and how should I 
run them to verify there are no adverse affects to this?

cheers,

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
             - http://www.simplistix.co.uk

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.