Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-3259

Table headers are not handled properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.8 RC2, 1.9 M1
    • 1.8 RC1
    • Office
    • None
    • Unit

    Description

      This happens when the oo generated (valid) html contains constructs like below:

      <THEAD>
      	<TR VALIGN=TOP>
      		<TH WIDTH=14%>
      			<P>Version</P>
      		</TH>
      		<TH WIDTH=14%>
      			<P>Date</P>
      		</TH>
      		<TH WIDTH=72%>
      			<P>Commentaire</P>
      		</TH>
      	</TR>
      </THEAD>
      

      Here the problem is the internal paragraph elements of 'th' elements. We can solve this problem in two ways:

      1. Wrap the contents of 'th' element inside an embedded document --> results in enlarged table headings compared to original document.
      2. Strip the isolated paragraph element from the 'th' element (move the contents up)

      I'm going to implement the second approach because that preserves the original size of the table header. And this is the approach taken for table cell 'td' elements as well. Further, if the 'th' element contains more than one paragraph or more complex structures, it will be wrapped inside an embedded document (as done with td elements).

      Attachments

        Activity

          People

            asiri Asiri Rathnayake
            asiri Asiri Rathnayake
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: