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 <[email protected]> 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

Reply via email to