ViewPageTemplate File renders improper
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zope.pagetemplate |
Invalid
|
Low
|
Unassigned |
Bug Description
We have a Zope 2.10 based app where
from zope.app.
is used to render a template containing
<body>
<div tal:condition=
<div id="table-
<h1 i18n:translate=
<div id="toc" />
</div>
<div id="main-content">
<div tal:replace=
</div>
<div tal:condition=
/>
</body>
This is rendered as
<body>
<div id="table-
<h1>label_
<div id="toc"></div>
<div id="main-content">
....
So the closing </div> of #table-of-contents is missing.
Replacing
<div id="toc" />
with
<div id="toc"></div>
works.
The ViewPageTemplat eFile from zope.app. pagetemplate lives in zope.pagetemplate today. Zope2 doesn't support zope.app. pagetemplate but has its own version in Products.Five.