Submitted by : 192.168.1.21 at: 2004-01-31T12:09:28+00:00 (13 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

When creating a table containing wiki markup that spans multiple lines, it will cause StructuredText to fail.

Consider the following examples (which all fail in the same way)

stuff
o Wiki link
spanning 2 lines
stuff
'Wiki link
spanning 2 lines'
stuff
[Wiki link
spanning 2 lines]

The traceback is:

Structured Text rendering failed:
Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/Products/ZWiki/PageTypes.py", line 197, in renderStxIn
    t = StructuredText.HTMLWithImages(
  File "/usr/lib/zope/lib/python/StructuredText/DocumentClass.py", line 316, in __call__
    doc=ST.StructuredTextDocument(self.color_paragraphs(
  File "/usr/lib/zope/lib/python/StructuredText/DocumentClass.py", line 415, in color_paragraphs
    r=pt(paragraph)
  File "/usr/lib/zope/lib/python/Products/ZWiki/PageTypes.py", line 564, in doc_table
    COLS[index][2] = row[index][2]
IndexError: tuple index out of range

Testing:

Problem table 1:

stuff
o Wiki link
spanning 2 lines

Problem table 2:

stuff
'Wiki link
spanning 2 lines'

Problem table 3:

stuff
[Wiki link
spanning 2 lines]

can't reproduce --simon, Fri, 01 Oct 2004 08:43:19 -0700 reply

Hmm, I can't reproduce this here (zope 2.7.2). I would like to find a way of triggering STX table errors, to test recent code that should omit problem tables from the page.

property change --simon, Mon, 25 Oct 2004 21:32:51 -0700 reply

Name: '#692 Table with markup spanning more than one line fails' => '#692 STX table with markup spanning more than one line fails' Category: user-pagetypes => general-rendering

property change --Sun, 30 Jan 2005 08:47:45 -0800 reply

Category: user-pagetypes => user-editing-stx