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

PDF Export of Code macro inserts line breaks which interfere with code function

    XMLWordPrintable

Details

    Description

      Exporting a PDF of a page containing the code macro (when said code macro contains long lines of code) inserts line breaks into the code, which prevents the code from working appropriately if a user copies and pastes it.

      I've attached screenshots of example PHP code from the Confluence page as compared to the PDF export.

      Some users may be able to workaround this issue by re-orienting their PDF exports via adding the following:

      @page 
      { size: 11in 8.5in; }
      

      To their PDF Stylesheet settings.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kgiorno Kenneth Giorno (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: