Try this: t = TABLE( (1,2,3), (4,5,6), # trailing comma # a blessing for sloppy coders )
Reasoning that nesting is allowed, we come to this: t = TABLE( (1,2,3), (4,5,6), (TABLE( ('one', 'two', 'three'), ('four', 'five', 'six'), ), 'third row, middle', 'third row, right', ), ) This raises an exception: ((1, _style='border:1px solid black'),2,3), But this will work: (TD(1, _style='border:1px solid black'),2,3), On Jan 29, 6:58 pm, DenesL <denes1...@yahoo.ca> wrote: > Can we see the code? > > In the following example no tbody is added to the inner table: > > >>> t=TABLE(*[TR(TABLE( *[ TR(*[1,2,3]), TR(*[4,5,6])] )),TR()]) > >>> print t > > <table><tr><td><table><tr><td>1</td><td>2</td><td>3</td></ > tr><tr><td>4</td><td>5</td><td>6</td></tr></table></td></tr><tr></tr></ > table> > > or nicely formatted: > > <table> > <tr> > <td> > <table> > <tr><td>1</td><td>2</td><td>3</td></tr> > <tr><td>4</td><td>5</td><td>6</td></tr> > </table> > </td> > </tr> > <tr> > </tr> > </table> > > On Jan 29, 4:10 pm, Tsvi Mostovicz <ttm...@gmail.com> wrote: > > > > > > > > > Hi all, > > I'm trying to get the following HTML structure using HTML helpers: > > > <table><thead>...</thead> > > <tbody>...</tbody> > > <table><thead>...</thead> > > <tbody>...</tbody> > > </table></table> > > > AKA nested tables. > > For some reason when I put the TABLE helper within another TABLE > > helper, the internal one gets surrounded by tbody, tr and td causing > > it not to show properly. Does anyone have an idea how to fix this > > behavior? > > > Thanks, > > > Tsvi > > > Sent from my phone