structured-text unordered list is rendered wrong in zpt
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
<p>..</p> has been removed in Zope 2.6...check CHANGES.txt -aj --On Mittwoch, 7. Mai 2003 12:11 Uhr +0200 Max M <maxm@mxm.dk> 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
_______________________________________________ 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 )
Andreas Jung wrote:
<p>..</p> has been removed in Zope 2.6...check CHANGES.txt
You are talking black to me here ... I cannot find anything about it in CHANGES.txt. I am running it under 2.61 and I am getting thos darned tags. regards Max M
Max M wrote:
Andreas Jung wrote:
<p>..</p> has been removed in Zope 2.6...check CHANGES.txt
You are talking black to me here ... I cannot find anything about it in CHANGES.txt. I am running it under 2.61 and I am getting thos darned tags.
whoops ... No ... this site is running under 2.51 sorry!
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 )
participants (3)
-
Andreas Jung -
danielle -
Max M