[ZPT] Trailing newline added by TALInterpreter.__call__()
Fred Drake
fred at zope.com
Wed Jun 9 11:20:25 EDT 2004
The TALInterpreter class is very careful to add a trailing newline at the end
of a rendering if there isn't one already present. This vaguely feels like
something that was done to make the user experiance nicer for someone working
with the templates in an editor, but there's no comment explaining it in the
code.
Does anyone here remember why this was done? We've actually had a reason not
to want the extra newline recently. It causes tal:content and tal:replace to
add an unexpected newline to the output when the value for the content or
replacement is generated by another page template, which can break
presentations.
-Fred
--
Fred L. Drake, Jr. <fred at zope.com>
PythonLabs at Zope Corporation
More information about the ZPT
mailing list