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

text-align="right" no longer works in combination with white-space="pre"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1
    • 2.2
    • renderer/pdf
    • None

    Description

      The text is left-aligned instead of right-aligned. This worked in FOP 0.95.

      <?xml version="1.0" encoding="UTF-8"?>
      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
      <fo:layout-master-set>
      <fo:simple-page-master master-name="page-master">
      <fo:region-body/>
      </fo:simple-page-master>
      </fo:layout-master-set>
      <fo:page-sequence master-reference="page-master">
      <fo:flow flow-name="xsl-region-body">
      <fo:block>
      <fo:block white-space="pre">
      <fo:block text-align="right">
      <fo:inline>This is some rather long text; it is pre-formatted, but not wrapping, and does not fit on one line. It should be displayed right-aligned.</fo:inline>
      </fo:block>
      </fo:block>
      </fo:block>
      </fo:flow>
      </fo:page-sequence>
      </fo:root>

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nickheyworth Nick Heyworth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: