[zope2-tracker] [Bug 592708] [NEW] ViewPageTemplate File renders improper
Andreas Jung
lists at zopyx.com
Fri Jun 11 11:06:57 EDT 2010
Public bug reported:
We have a Zope 2.10 based app where
from zope.app.pagetemplate.viewpagetemplatefile import
ViewPageTemplateFile
is used to render a template containing
<body>
<div tal:condition="options/coverfront | nothing"
tal:content="structure options/coverfront"
id="cover-front"/>
<div id="table-of-contents">
<h1 i18n:translate="label_table_of_contents">Table of contents</h1>
<div id="toc" />
</div>
<div id="main-content">
<div tal:replace="structure options/body" />
</div>
<div tal:condition="options/coverback | nothing"
tal:content="structure options/coverback"
id="cover-back"
/>
</body>
This is rendered as
<body>
<div id="table-of-contents">
<h1>label_table_of_contents</h1>
<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.
** Affects: zope2
Importance: Low
Status: New
** Tags: zpt
--
ViewPageTemplate File renders improper
https://bugs.launchpad.net/bugs/592708
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
More information about the zope2-tracker
mailing list