[dokuwiki] Is this a bug in table creation? - column classes wrong if there's a row span

  • From: Chris G <cl@xxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 16 Jun 2011 15:05:31 +0100

If you create a table as follows:-

^ COL0 ^     COL1       ^       COL2      ^       
|   r1c0    |    r1c1    |   r1c2         |
|   :::     |    r2c1    |   r2c2         |
|   r3c0    |    r3c1    |   r3c2         |

Then the HTML generated is:-

<div class="table sectionedit1"><table class="inline">
        <tr class="row0">
                <th class="col0"> COL0 </th><th class="col1 centeralign">     
COL1       </th><th class="col2 centeralign">      COL2      </th>
        </tr>
        <tr class="row1">

                <td class="col0 centeralign" rowspan="2">   r1c0   </td><td 
class="col1 centeralign">    r1c1    </td><td class="col2 centeralign">   r1c2  
       </td>
        </tr>
        <tr class="row2">
                <td class="col0 centeralign">    r2c1    </td><td class="col1 
centeralign">   r2c2         </td>

        </tr>
        <tr class="row3"> <td class="col0 centeralign">   r3c0    </td><td 
class="col1 centeralign">    r3c1    </td><td class="col2 centeralign"> 
 r3c2         </td>
        </tr>
</table></div>


Notice that the table data 'r2c1' has a class of col0.  It hasn't
allowed for the row span in the first column.

-- 
Chris Green
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts:

  • » [dokuwiki] Is this a bug in table creation? - column classes wrong if there's a row span - Chris G