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

Problem with list containing multi-line items in RTF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Cannot Reproduce
    • 1.0
    • None
    • renderer/rtf
    • None
    • Operating System: Windows XP
      Platform: PC
    • 50163

    Description

      I have a problem rendering a list with multi-line items in RTF.

      I have html

      <ul>
      <li>
      <p>
      Item 1 Line 1<br />
      Item 1 Line 2<br />
      Item 1 Line 3
      </p>
      </li>
      <li>
      <p>
      Item 2 Line 1<br />
      Item 2 Line 2<br />
      Item 2 Line 3
      </p>
      </li>
      </ul>

      which gets transformed into fo as

      <fo:list-block>
      <fo:list-item>
      <fo:list-item-label end-indent="label-end()">
      <fo:block>
      <fo:inline>•</fo:inline>
      </fo:block>
      </fo:list-item-label>
      <fo:list-item-body start-indent="body-start()">
      <fo:block>
      Item 1 Line 1
      </fo:block>
      <fo:block>
      Item 1 Line 2
      </fo:block>
      <fo:block>
      Item 1 Line 3
      </fo:block>
      </fo:list-item-body>
      </fo:list-item>
      <fo:list-item>
      <fo:list-item-label end-indent="label-end()">
      <fo:block>
      <fo:inline>•</fo:inline>
      </fo:block>
      </fo:list-item-label>
      <fo:list-item-body start-indent="body-start()">
      <fo:block>
      Item 2 Line 1
      </fo:block>
      <fo:block>
      Item 2 Line 2
      </fo:block>
      <fo:block>
      Item 2 Line 3
      </fo:block>
      </fo:list-item-body>
      </fo:list-item>
      </fo:list-block>

      It renders to PDF correctly as

      • Item 1 Line 1
        Item 1 Line 2
        Item 1 Line 3
      • Item 2 Line 1
        Item 2 Line 2
        Item 2 Line 3

      but in RTF it appears as

      • Item 1 Line 1
      • Item 1 Line 2
      • Item 1 Line 3
      • Item 2 Line 1
      • Item 2 Line 2
      • Item 2 Line 3

      Attachments

        1. list_with_multiline.fo
          3 kB
          Jerry Fan
        2. list_with_multiline.rtf
          2 kB
          Jerry Fan
        3. number_list_with_multiline.patch
          4 kB
          Jerry Fan

        Issue Links

          Activity

            People

              fop-dev@xmlgraphics.apache.org fop-dev
              dmitro@newground.ch dmitro
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: