xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MOHD (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FOP-1863) Problem with list containing multi-line items in RTF
Date Mon, 19 May 2014 07:30:39 GMT

    [ https://issues.apache.org/jira/browse/FOP-1863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14001456#comment-14001456
] 

MOHD commented on FOP-1863:
---------------------------

source code was clear. Please find below source code for the same.

//         if (!parentList.getHasTableParent()) {   // removed

//            writeControlWord("pard");   // removed

            parent.parent.inListItem=true;

            parent.parent.ListItem=false;

//        } // removed

> 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)

Mime
View raw message