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

Rtf numbered lists without numbers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 0.93
    • None
    • renderer/rtf
    • None
    • Operating System: Linux
      Platform: PC
    • 41389

    Description

      I convert DocBook XML document to RTF, using xsltproc for generation of .fo
      file, and next FOP 0.93. Document has orderedlist and itemizedlists.
      Itemizedlists are converted to bullets very well, but orderedlist has no numbers
      in front of paragraphs. I've done some experiments with .fo file which showed to
      me that everything starting with a digit is treated as a numbered list element.
      <fo:list-item-label>
      <fo:block>1.</fo:block>
      </fo:list-item-label>
      Next I browsed trough source code of
      fop/trunk/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListItem.java and
      found confirmation:
      if (label.length() > 0 && Character.isDigit(label.charAt(0))) {
      rtfListItem.setRtfListStyle(new RtfListStyleNumber());
      } else {
      rtfListItem.setRtfListStyle(new RtfListStyleText(label));
      }
      I suspect that there is something wrong with RtfListStyleNumber, but I'm not
      java programmer so my possibilities end here.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              robert.ganowski@wp.pl Robert Ganowski
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: