xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Delmelle <andreas.delme...@telenet.be>
Subject Re: HELP : Embedding Large Number of Lines from an External File
Date Fri, 03 Jul 2009 10:55:27 GMT

On 03 Jul 2009, at 09:59, Danushka Menikkumbura wrote:

Hi Danushka

> Any chance you can try 0.95 and check if the issue persists?
>
> I switched to 0.94 due to some table formatting issue in 0.95 so  
> that it not an option.

OK. I just tried your sample with latest FOP Trunk, and it reproduces  
the issue, but...

<snip />
> <fo:block space-before.minimum="0.5em" space-before.optimum="1em"  
> space-before.maximum="2em" space-after.minimum="0.5em" space- 
> after.optimum="1em" space-after.maximum="2em"
> keep-together.within-column="always" id="ex.wsdl">
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Here's what's bugging you. Specifying keep="always" on a block that  
does not fit into one page triggers this issue. (Note that keep-* are  
all inherited properties, so indirectly you're saying: keep this block  
and all of its descendants together within the same column)
Why precisely FOP decides to only retain the last part, is a question- 
mark for me at the moment, but removing that property suffices to have  
the content distributed over multiple pages.

Besides that:

> <fo:block space-before.minimum="0pt" space-before.optimum="6pt"  
> space-before.maximum="6pt" space-after.minimum="0pt" space- 
> after.optimum="6pt" space-after.maximum="6pt" font- 
> family="monospace" font-stretch="semi-condensed" text-align="start"  
> background-color="#F0F0F0" border-style="solid" border-width="1pt"  
> border-color="#A0A0A0" padding="0pt 6pt 0pt 6pt" margin="0pt" line- 
> stacking-strategy="font-height" linefeed-treatment="preserve" white- 
> space-collapse="false" wrap-option="wrap">

I added the property "white-space-treatment='preserve'" to retain the  
indentation. If you don't specify it, the indenting spaces will be  
suppressed because they a follow a preserved linefeed.

HTH!

Andreas


Andreas Delmelle
mailto:andreas.delmelle.AT.telenet.be
jabber: mandreas@jabber.org
skype: adlm0608

---


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message