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

ODT Export display issues with tables

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • Office
    • None
    • Unknown

    Description

      When exporting to Office (ODT) the HTML given to Office for the following wiki content:

      |= table header |= table header |= table header
      | cell | cell | cell
      | cell | cell | cell
      

      will contain spaces in each <th> and <td> at the beginning and end of each cell.
      The result in Office is the following:

      If your wiki content is like that, then you get a nicer display

      |=table header|=table header|=table header
      |cell|cell|cell
      |cell|cell|cell
      

      which becomes even better with a width param:

      (% width="100%" %)
      |=table header|=table header|=table header
      |cell|cell|cell
      |cell|cell|cell
      

      So we would need to use an HTMLCleaner which trims the white spaces in cells and also adds a width parameter to the

      Note that in XWiki all this displays the same (100%):

      It's also unclear why in office the "th" ends up centered while the "td" is left align. The HTML has no difference.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ludovic Ludovic Dubost
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: