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

Previewing with Word office Macro, table of content will not have correct styling.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 7.9.1
    • None

    Description

      Issue Summary

      Previewing "Table of Content" from a docx attachment, with Office Word Macro will display a broken table list, without page numbers.

      Steps to Reproduce

      1. Import a sample attachment with a table of content: Table of Contents example.docx
      2. Save page
      3. In the preview of the attachment TOC is displayed correctly
      1. Edit the page and create Office Word Macro from the same attachment.
      2. Save and preview the page

      Expected Results

      TOC is displayed correctly for the page

      Actual Results

      TOC is displayed with broken styling and without the actual page numbers.

      Workaround

      The issue seems to be not present in Confluence 7.4 or 7.7 style vise, but numbers are still missing.

      A potential worakround might be to use javascript to alter css behavior:

      <script>
      AJS.toInit(function() {
      setTimeout(function() {
                  var element=$( ".converter-macro-content a[href*='#_Toc']" );
         element.children().css( "width", "auto" );
              }, 500);
       });
      </script>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            gpaunovic g
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: