Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-1141

white-space incorrectly handled after linefeed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 0.91
    • None
    • unqualified
    • None
    • Operating System: other
      Platform: Other
    • 38457

    Description

      Not sure if it is supposed to be or I was using it wrong. The PDF generated
      from following snippet shows no line breaks between the lines, so all text
      within the block is wrapped up in one line.

      Please instruct. Thank you very much.

      <fo:block font-family="monospace" white-space="pre" >
      public class Sample
      {
      public static void main(String [] args)

      { System.out.println("Hello, World!"); }

      }
      </fo:block>

      Attachments

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            lihao li hao
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: