https://issues.apache.org/bugzilla/show_bug.cgi?id=50163

           Summary: Problem with list containing multi-line items in RTF
           Product: Fop
           Version: 1.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: rtf
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: dmi...@newground.ch


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

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to