[
https://issues.apache.org/jira/browse/FOP-1863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14001452#comment-14001452
]
MOHD commented on FOP-1863:
---------------------------
I have commented if condition from RtfListItem.java for the below
writeRtfPrefix() method..
Now it is working fine inside the table also.
protected void writeRtfPrefix() throws IOException {
-
+ writeGroupMark(true);
+ //To ensure that the listitem ends with '}' if the list is nested in a
table.
+ parent.parent.ListItem=true;
// pard causes word97 (and sometimes 2000 too) to crash if the list is
nested in a table
// if (!parentList.getHasTableParent()) {
// writeControlWord("pard");
+ parent.parent.inListItem=true;
+ parent.parent.ListItem=false;
// }
Please let me know if anyone else has any suggestions....
> Problem with list containing multi-line items in RTF
> ----------------------------------------------------
>
> Key: FOP-1863
> URL: https://issues.apache.org/jira/browse/FOP-1863
> Project: Fop
> Issue Type: Bug
> Components: rtf
> Affects Versions: 1.0
> Environment: Operating System: Windows XP
> Platform: PC
> Reporter: dmitro
> Assignee: fop-dev
> Attachments: list_with_multiline.fo, list_with_multiline.rtf,
> number_list_with_multiline.patch
>
>
> I have a problem rendering a list with multi-line items in RTF.
> I have html
> <ul>
> <li>
> <p>
> Item 1 Line 1<br />
> Item 1 Line 2<br />
> Item 1 Line 3
> </p>
> </li>
> <li>
> <p>
> Item 2 Line 1<br />
> Item 2 Line 2<br />
> Item 2 Line 3
> </p>
> </li>
> </ul>
> which gets transformed into fo as
> <fo:list-block>
> <fo:list-item>
> <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>
> Item 1 Line 1
> </fo:block>
> <fo:block>
> Item 1 Line 2
> </fo:block>
> <fo:block>
> Item 1 Line 3
> </fo:block>
> </fo:list-item-body>
> </fo:list-item>
> <fo:list-item>
> <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>
> Item 2 Line 1
> </fo:block>
> <fo:block>
> Item 2 Line 2
> </fo:block>
> <fo:block>
> Item 2 Line 3
> </fo:block>
> </fo:list-item-body>
> </fo:list-item>
> </fo:list-block>
> It renders to PDF correctly as
> * Item 1 Line 1
> Item 1 Line 2
> Item 1 Line 3
> * Item 2 Line 1
> Item 2 Line 2
> Item 2 Line 3
> but in RTF it appears as
> * Item 1 Line 1
> * Item 1 Line 2
> * Item 1 Line 3
> * Item 2 Line 1
> * Item 2 Line 2
> * Item 2 Line 3
--
This message was sent by Atlassian JIRA
(v6.2#6252)