[Zope] structured-text unordered list is rendered wrong in zpt
danielle
danielle@francoplone.org
Wed, 07 May 2003 12:26:39 +0200
Max M wrote:
> I am rendering some structured text in a page template. The text looks
> like this:
>
> test_text:
> #######################################
> Some paragraph
>
> - This is a list item
>
> - This is a second list item
>
> - This is a third list item
>
> A closing paragraph
> #######################################
>
> And it generates the following html.
>
> #######################################
> <p>Some paragraph</p>
>
> <ul>
> <li><p>This is a list item</p></li>
> <li><p>This is a second list item</p></li>
> <li><p>This is a third list item</p></li>
>
> </ul>
>
> <p>A closing paragraph</p>
> #######################################
>
> The problem is the superfluous <p> element around every list item. It
> makes the list item appear on another line than the bullet :-s
>
> Does anybody know the problem is here?
>
> The tal used to render the text is here.
>
> #######################################
> <div tal:define="sfmt
> modules/Products/PythonScripts/standard/special_formats; sttxt
> nocall:sfmt/structured-text" tal:omit-tag="">
> <span tal:replace="structure
> python:sttxt(here.test_text)">test_text</span>
> </div>
> #######################################
>
>
> regards Max M
but if you cut the one-line paragraphs, it' ok as you obtain
<div class="stx">
<p>Some
paragraph</p>
<ul>
<li>This is a list item</li>
<li>This is a second list item</li>
<li>This is a third list item</li>
</ul>
<p>A closing
paragraph </p>
</div>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>