Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-60148

Table in page loses formatting when space is exported to HTML

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 6.12.2, 7.3.3, 7.6.1, 7.19.26
    • Content - Page
    • None

      Summary

      When exporting a space to HTML, tables contained within pages lose their formatting.

      Environment

      Confluence

      • 6.12.2
      • 7.3.3
      • 7.6.1

      Steps to Reproduce

      1. Create a table within a page and save the page. Ensure that it contains a table header row.
      2. Export the space containing the page to HTML.
      3. Open the resulting HTML page within the export zip file.

      Expected Results

      Tables should display with their formatting.

      Actual Results

      There's no rendering of the table formatting.

      Here's a screen shot of the table within a page prior to export:

       

      Here's the same page and table exported to HTML:

      Workaround

      Add the below lines to the site.css file in the space export file. You will be able to see the table format on the page.

      table, th, td {
        border: 1px solid;
      }
      
      table {
        border-collapse: collapse;
      }
      
      th, td {
        padding: 10px;
      }
      

              Unassigned Unassigned
              sshaw@atlassian.com Steve Shaw
              Votes:
              7 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: