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

Vinesh Kumar commented on FOP-1536:
-----------------------------------

We are seeing this issue in FOP 2.0 as well. This issue became showstopper to 
upgrade. 
Any solution identified to fix this issue other than replacing space to NBSP 
and ZWSP? 

> Questionable white-space-treatment behavior
> -------------------------------------------
>
>                 Key: FOP-1536
>                 URL: https://issues.apache.org/jira/browse/FOP-1536
>             Project: FOP
>          Issue Type: Bug
>          Components: unqualified
>    Affects Versions: trunk
>         Environment: Operating System: Windows Vista
> Platform: PC
>            Reporter: Sean Griffin
>         Attachments: test.at.pdf, whitespace_without_wrapping_block.fo, 
> whitespace_without_wrapping_block.pdf, whitespace_wrapping_block.fo, 
> whitespace_wrapping_block.pdf
>
>
> I've done quite a bit of digging in the web site and the mailing lists to 
> track down this issue, and there does seem to be some issues around 
> white-space handling.  What I'm not clear on is whether the 
> already-documented issues around white-space handling match the behavior I'm 
> seeing, so I'll log this bug to explain.
> Except for a few peculiar cases, the behavior documented in the specification 
> regarding white-space-treatment does seem to be implemented correctly, but 
> I'm wondering if the specification is either misinterpreted or wrong to begin 
> with.
> I'll attach some FO/PDF examples to explain better, but the bottom-line issue 
> is that there does not appear to be a way to get spaces at the beginning of a 
> line to preserve while not creating hanging indents for long blocks that have 
> formatter-generated line feeds.  The "ignore-if-surrounding-linefeed" 
> property value obviously solves the hanging indent problem but also prevents 
> spaces at the start of a block from preserving.
> Curiously, if I add inline children to the block the treatment of the 
> whitespace is different, and further, if I wrap the various blocks with a 
> single parent block then it changes the whitespace treatment again.  Please 
> see attachments to see what I'm talking about.
> I've tried this in both FOP 0.95beta and FOP Trunk with the same results.
> To summarize, I see 3 questionable items:
> 1. Shouldn't the whitespace_without_wrapping_block.pdf match the 
> whitespace_with_wrapping_block.pdf?
> 2. In whitespace_without_wrapping_block.pdf, is the behavior of Example 2 
> correct where whitespace is preserved inside inline elements even when 
> whitespace-treatment != "preserve"?
> 3. In whitespace_without_wrapping_block.pdf, is there a way to get Example 1 
> behavior and Example 5 behavior with the same block property settings (to 
> prevent Example 4 behavior)?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to