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

FO to RTF conversion adds unnecessary \cell after <fo:list-block>...</fo:list-block> when it is nested inside any table cell

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: trunk
    • Component/s: None
    • Labels:
      None

      Description

      I am trying to convert from FO to RTF here, The version of FOP i am using is 1.1
      let say below is my FO
      ...
      ...
      <fo:table>
      <fo:table-body role="html:tbody">
      <fo:table-row role="html:tr">
      <fo:table-cell role="html:td">
      <fo:block>
      <fo:list-block list-style-type="disc" role="html:ul">
      <fo:list-item role="html:li">
      <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>test data</fo:block>
      </fo:list-item-body>
      </fo:list-item>
      ...(similarly many list items)..
      </fo:list-block>
      ..(some more fo:block div data)..
      </fo:table-cell>
      </fo:table-row>
      </fo:table-body>
      </fo:table>

      here immediately after the </fo:list-block> RTF is addind '\cell', Because of that even though there is some data after list block RTF treats it as end of table cell.

      so Rest of the data after list block won't be visible in RTF.

        Attachments

        1. FO.xml
          18 kB
          jaydeep V
        2. HTML.html
          10 kB
          jaydeep V
        3. RTF.rtf
          23 kB
          jaydeep V

          Activity

            People

            • Assignee:
              cbowditch Chris Bowditch
              Reporter:
              Jaydeep_V jaydeep V
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: