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

XMLWordPrintable

      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.

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

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

                Created:
                Updated:
                Resolved: