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

using language attribute breaks linefeed-treatment="preserve" rendered block

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Duplicate
    • 2.5
    • None
    • layout/unqualified
    • None
    • Operating System: All
      Platform: All
    • 49411

    Description

      The following code:

      <?xml version="1.0" encoding="iso-8859-1"?>
      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
      <fo:layout-master-set>
      <fo:simple-page-master master-name="my-page">
      <fo:region-body margin="1in"/>
      </fo:simple-page-master>
      </fo:layout-master-set>

      <fo:page-sequence hyphenate="true" language="en" master-reference="my-page">
      <fo:flow flow-name="xsl-region-body">
      <fo:block linefeed-treatment="preserve">First line
      Second line</fo:block>
      </fo:flow>
      </fo:page-sequence>
      </fo:root>

      results in an output of:
      FirstlineSecondline
      FirstlineSecondline

      Without the language="en" attribute the output is (as expected)
      First line
      Second line

      This seems to be independent of the chosen output format.

      Attachments

        Issue Links

          Activity

            People

              fop-dev@xmlgraphics.apache.org fop-dev
              arjen@pinguins.dyndns.org Arjen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: