Details
-
Bug
-
Status: Open
-
Resolution: Unresolved
-
0.93
-
None
-
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
- is duplicated by
-
FOP-1331 Numbered lists not converted properly to RTF
- Closed