Bug 36508

Summary: [PATCH] Padding-* attributes handling in RTF-rendering
Product: Fop - Now in Jira Reporter: Sergey Simonchik <Sergey.Simonchik>
Component: generalAssignee: fop-dev
Status: CLOSED FIXED    
Severity: normal CC: danila.ermakov
Priority: P2    
Version: all   
Target Milestone: ---   
Hardware: Other   
OS: other   
Attachments: [PATCH] Handling of padding attributes are supported

Description Sergey Simonchik 2005-09-05 17:53:48 UTC
 
Comment 1 Sergey Simonchik 2005-09-05 18:01:54 UTC
Created attachment 16311 [details]
[PATCH] Handling of padding attributes are supported

Was: 
    padding-related attributes were ignored.

Became: 
    When border is specified, all padding attributes are recognized.
    When border is not specified, padding added to space-* attributes.
Comment 2 Jeremias Maerki 2005-09-06 14:12:03 UTC
Applied. Thanks!

http://svn.apache.org/viewcvs?rev=278982&view=rev

Thanks to you padding on before and after sides work well now. A quick test
shows that the start|end sides don't quite work as expected. You might want to
have a look at it. The following leads to strange results:
<fo:block margin-left="2cm" border="solid 2pt" padding-start="2cm">Hello
World!</fo:block>
Comment 3 Sergey Simonchik 2005-09-06 15:48:52 UTC
(In reply to comment #2)
> Applied. Thanks!
> http://svn.apache.org/viewcvs?rev=278982&view=rev
> Thanks to you padding on before and after sides work well now. A quick test
> shows that the start|end sides don't quite work as expected. You might want to
> have a look at it. The following leads to strange results:
> <fo:block margin-left="2cm" border="solid 2pt" padding-start="2cm">Hello
> World!</fo:block>

Yes, it's quite strange. But now I can't resolved it, because if border 
specified, then padding should be in range [0..31] pt. I use MSWord as RTF-
viewer.
In above test padding was greater then 31 pt, so it was cutted.
Comment 4 Jeremias Maerki 2005-09-06 16:33:40 UTC
Do you have a reference to a document that describes this restriction? I've
looked through versions 1.7 and 1.8 of Microsoft's RTF specification but have
found nothing. Maybe it's possible to warn the user that there will be
unexpected behaviour when such a constellation is encountered.
Comment 5 Sergey Simonchik 2005-09-06 16:42:15 UTC
(In reply to comment #4)
> Do you have a reference to a document that describes this restriction? I've
> looked through versions 1.7 and 1.8 of Microsoft's RTF specification but have
> found nothing. Maybe it's possible to warn the user that there will be
> unexpected behaviour when such a constellation is encountered.

No, I havn't reference to a document. I think, it's RTF-viewer's restriction 
(here MSWord restriction), because OpenOffice.org 1.1 can display padding 
greater then 31pt.
Comment 6 Glenn Adams 2012-04-01 06:31:55 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed