Bug 41389 - Rtf numbered lists without numbers
Summary: Rtf numbered lists without numbers
Status: NEW
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: rtf (show other bugs)
Version: 0.93
Hardware: PC Linux
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
: 41941 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-01-17 06:08 UTC by Robert Ganowski
Modified: 2012-04-07 01:52 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Ganowski 2007-01-17 06:08:24 UTC
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.
Comment 1 Andreas L. Delmelle 2007-07-14 03:53:00 UTC
*** Bug 41941 has been marked as a duplicate of this bug. ***
Comment 2 Glenn Adams 2012-04-07 01:37:14 UTC
resetting severity from major to normal pending further review
Comment 3 Glenn Adams 2012-04-07 01:44:35 UTC
resetting P2 open bugs to P3 pending further review