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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1
    • 2.4
    • None
    • 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. RTF.rtf
          23 kB
          jaydeep V
        2. HTML.html
          10 kB
          jaydeep V
        3. FO.xml
          18 kB
          jaydeep V

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            cbowditch Chris Bowditch
            Jaydeep_V jaydeep V
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment