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

Excessive Whitespace Occurs When Exporting Pages to PDF with Code Macro Elements

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Low
    • None
    • 5.7
    • None

    Description

      When using the code block macro and export to PDF, the PDF generated has unexpected white space when the code block is just past the page limit.

      Reproduction steps:

      1. Create an empty page and add code block macro.
      2. Insert block of code into the macro 45 lines long.
      3. Save page.
      4. Export page to PDF

      Expected behavior

      Expected PDF file to display block of code continuously and extend into next page without any white space.

      Actual behavior

      The PDF contains the code block on the first page. Second page contains one line of code and then white space. The rest of code appears on the third page.

      Related Notes

      • Location of where white space generated is dependent on the lines of code in the block. It can sometimes appear at the front or the back. With 42 lines of code, a page break is generated for the first page and the code appears on the second page.
      • Also affects no format macro and panel macro.

      Attachments

        Issue Links

          Activity

            People

              shaffenden Steve Haffenden (Inactive)
              mduong@atlassian.com MichaelD
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: