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

Long text is not wrapped in noformat and code macros inside a table

      Bug Background
      1. Some macros with a very long text within it will not be wrapped if they are within a table
      2. As a result, the page becomes too wide with scrollbars to scroll the page.
      3. The long text inside the macros should be within the macro with scrollbar to scroll the text or wrapped if possible.
      4. This behaviour applies to macros such as {code} {noformat}, {panel}, {info}, {quote} and possibly other macros
      5. This behaviour is exhibited in the Left Navigation Theme as well as when using the Navigation Sidebar because of the use of tables.
      6. Here is a sample code that you can try to demonstrate the behaviour:
        h3. Macros within table
        {html}
        <table>
        <tr>
        <td>
        
        {html}
        \{code:title=Code Macro}
        this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. 
        \{code}
        
        {panel:title=Panel}
        this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. 
        {panel}
        
        {noformat:title=Noformat}
        this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. 
        {noformat}
        
        {info:title=Info}
        this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. 
        {info}
        
        {html}
        </td>
        </tr>
        </table>
        {html}
        
        h3. Macros outside table
        
        \{code:title=Code Macro}
        this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. 
        \{code}
        
        {panel:title=Panel}
        this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. 
        {panel}
        
        {noformat:title=Noformat}
        this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. 
        {noformat}
        
        {info:title=Info}
        this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. this is a very long text. 
        {info}
        
      7. This is the screenshot for the above code
      Workaround
      1. As a workaround, Administrator can define a Custom HTML that has this code in the "At end of the HEAD" section:
        <style>
        .code, .preformatted
        {
         width: 50%;
        }
        .panelContent pre
        {
        overflow-x: scroll;
        }
        </style>
        
      2. This workaround is applicable to only {code} and {noformat} macro.

            [CONFSERVER-16736] Long text is not wrapped in noformat and code macros inside a table

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2897848 ] New: CONFSERVER Bug Workflow v4 [ 2992405 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2789772 ] New: JAC Bug Workflow v3 [ 2897848 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2719829 ] New: JAC Bug Workflow v2 [ 2789772 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2388956 ] New: JAC Bug Workflow [ 2719829 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2266108 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2388956 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2209741 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2266108 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2195025 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2209741 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1929009 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2195025 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1730409 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1929009 ]
            Katherine Yabut made changes -
            Workflow Original: CONF Bug Subtask WF (TEMP) [ 1686581 ] New: Confluence Workflow - Public Facing - Restricted v3 [ 1730409 ]

              kfchong KaiA
              sjayaraman Sashidaran Jayaraman [Atlassian]
              Affected customers:
              4 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: