|Title|Closing Table Header cell code ( /th ) generated incorrectly when all cells not ( th )
|Date|16-Apr-2007 17:23:04 EEST
|Version|2.4.102
|Submitter|DaveLindsey
|[Bug criticality]|BadBug
|Browser version|na
|[Bug status]|ClosedBug
|[PageProvider] used|
|Servlet Container|tomcat 6.0.10
|Operating System|winXP
|URL|see code for this page
|Java version|6.0


*Closing __{{ </th> }}__ tags are not written correctly when table row contains __{{ <td> </td> }}__ tags.
* Closing __{{ </th> }}__ is added after closing the row: __{{ </tr>  </th>  }}__
* It would also be nice if a new line were stated after closing the table. 

{{{
    || Heading1 || Heading2 | Heading3 |  Heading4 
    |  R1 C1    |  R1 C2    | R1 C3     |  R1 C4 
    |  R2 C1    |  R2 C2    | R2 C3     |  R2 C4 
    || R3 C1    |  R3 C2    | R3 C3     |  R3 C4 
}}}

|| Heading1 || Heading2 | Heading3 |  Heading4 
|  R1 C1    |  R1 C2    | R1 C3     |  R1 C4 
|  R2 C1    |  R2 C2    | R2 C3     |  R2 C4 
|| R3 C1    |  R3 C2    | R3 C3     |  R3 C4 


{{{
<table class="wikitable" border="1">
<tr class="odd"> 
    <th> Heading1 </th> <th> Heading2 (!missing!)  <td> Heading3</td> <td>  Heading4 </td> </th> (placed here)
</tr>
<tr>
    <td>  R1 C1  </td> <td>  R1 C2  </td> <td> R1 C3  </td><td>  R1 C4 </td>
</tr>

<tr class="odd">
    <td>  R2 C1  </td> <td>  R2 C2    </td> <td> R2 C3 </td> <td>  R2 C4 </td>
</tr>
<tr>
   <th> R3 C1 (!missing!) <td>  R3 C2 </td><td> R3 C3 </td><td> R3 C4 </td> </th> (placed here)
</tr>

</table> 

}}}

----

Still fixed in 2.5.30...