[jira] [Commented] (FOP-1863) Problem with list containing multi-line items in RTF

2014-05-19 Thread MOHD (JIRA)

[ 
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
> 
>   
> 
> Item 1 Line 1
> Item 1 Line 2 
> Item 1 Line 3
> 
>   
>   
> 
> Item 2 Line 1
> Item 2 Line 2 
> Item 2 Line 3
> 
>   
> 
> which gets transformed into fo 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
>   
> 
>   
> 
> 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)


[jira] [Commented] (FOP-1863) Problem with list containing multi-line items in RTF

2014-05-19 Thread MOHD (JIRA)

[ 
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
> 
>   
> 
> Item 1 Line 1
> Item 1 Line 2 
> Item 1 Line 3
> 
>   
>   
> 
> Item 2 Line 1
> Item 2 Line 2 
> Item 2 Line 3
> 
>   
> 
> which gets transformed into fo 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
>   
> 
>   
> 
> 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)


[jira] [Commented] (FOP-1863) Problem with list containing multi-line items in RTF

2014-05-19 Thread MOHD (JIRA)

[ 
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
> 
>   
> 
> Item 1 Line 1
> Item 1 Line 2 
> Item 1 Line 3
> 
>   
>   
> 
> Item 2 Line 1
> Item 2 Line 2 
> Item 2 Line 3
> 
>   
> 
> which gets transformed into fo 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
>   
> 
>   
> 
> 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)


[jira] [Commented] (FOP-1863) Problem with list containing multi-line items in RTF

2014-05-19 Thread MOHD (JIRA)

[ 
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
> 
>   
> 
> Item 1 Line 1
> Item 1 Line 2 
> Item 1 Line 3
> 
>   
>   
> 
> Item 2 Line 1
> Item 2 Line 2 
> Item 2 Line 3
> 
>   
> 
> which gets transformed into fo 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
>   
> 
>   
> 
> 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)


[jira] [Commented] (FOP-1863) Problem with list containing multi-line items in RTF

2014-05-15 Thread MOHD (JIRA)

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

MOHD commented on FOP-1863:
---

this patch solves the issue outside the table not inside. if list block is 
inside the table it is taking default labels.
I have created below issue for the same.

https://issues.apache.org/jira/browse/FOP-2373

Please give me some suggestion for this issue..


> 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
> 
>   
> 
> Item 1 Line 1
> Item 1 Line 2 
> Item 1 Line 3
> 
>   
>   
> 
> Item 2 Line 1
> Item 2 Line 2 
> Item 2 Line 3
> 
>   
> 
> which gets transformed into fo 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
>   
> 
>   
> 
> 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)


[jira] [Commented] (FOP-1863) Problem with list containing multi-line items in RTF

2014-05-15 Thread MOHD (JIRA)

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

MOHD commented on FOP-1863:
---

this patch solves the issue outside the table not inside. if list block is 
inside the table it is taking default labels.
I have created below issue for the same.

https://issues.apache.org/jira/browse/FOP-2373

Please give me some suggestion for this issue..


> 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
> 
>   
> 
> Item 1 Line 1
> Item 1 Line 2 
> Item 1 Line 3
> 
>   
>   
> 
> Item 2 Line 1
> Item 2 Line 2 
> Item 2 Line 3
> 
>   
> 
> which gets transformed into fo 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
>   
> 
>   
> 
> 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)