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

PDF generation does not preserve whitespaces defined in code and noformat macros

    XMLWordPrintable

Details

    Description

      Having the following wiki markup in a Confluence page:

      {code}
      public class helloWorld
      {
          coding.......
      }
      {code}
      

      Will render the following:

      public class helloWorld
      {
          coding.......
      }
      

      Generate the current page to PDF format provides the attached result, PDF_260.pdf (generated from a Confluence version 2.6.0 instance).
      The full wiki markup from the attached PDF are:

      {code}
      public class helloWorld
      {
         coding.....
      }
      {code}
      
      \{noformat}
      text
          some more text
      \{noformat}
      
      some text
      
         Some text 
      

      This is also reproducible in Confluence version 2.6.1 and 2.6.2. Note that the panel that shipped together with the macros are gone too.

      Attachments

        1. xhtml2fo.xsl
          72 kB
        2. PDF_260.pdf
          14 kB

        Activity

          People

            pcurren Paul Curren
            tcheah Tony Cheah Tong Nyee [Atlassian]
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: