You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Glen Mazza <gr...@yahoo.com> on 2004/08/18 00:19:15 UTC

Having trouble removing linefeeds

Hello,

Within an fo:table-cell, I wish to have an output
similar to the following:

System Codes 25-30

Where 25 and 30 are calculated using fo:markers.

The FO snippet is as follows:

<fo:table-cell>
  <fo:block text-align="end"> 
     System Codes 
     <fo:retrieve-marker
retrieve-position="first-starting-within-page"
retrieve-boundary="page" retrieve-class-name="code"/>
     <fo:block>-</fo:block>
     <fo:retrieve-marker
retrieve-position="last-ending-within-page"
retrieve-boundary="page" retrieve-class-name="code"/>
  </fo:block>
</fo:table-cell>

When running this, however, I'm getting this output:

System Codes 25
-
30

I.e., without the linefeeds being removed.

Question:  What is the combination of
white-space-collapse, white-space-treatment, and/or
linefeed-treatment I need to use, and where should I
specify them in the snippet above, in order to get the
output as desired?

Thanks,
Glen

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


Re: Having trouble removing linefeeds

Posted by Glen Mazza <gr...@yahoo.com>.
Thanks, Chris, that solved it.

Glen

--- Chris Bowditch <bo...@hotmail.com> wrote:

> Glen Mazza wrote:
> 
> <snip/>
> 
> > <fo:table-cell>
> >   <fo:block text-align="end"> 
> >      System Codes 
> >      <fo:retrieve-marker
> > retrieve-position="first-starting-within-page"
> > retrieve-boundary="page"
> retrieve-class-name="code"/>
> >      <fo:block>-</fo:block>
> 
> Glen, I think this is your problem. Try placing the
> minus inside a fo:inline 
> instead of a fo:block.
> 


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


Re: Having trouble removing linefeeds

Posted by Chris Bowditch <bo...@hotmail.com>.
Glen Mazza wrote:

<snip/>

> <fo:table-cell>
>   <fo:block text-align="end"> 
>      System Codes 
>      <fo:retrieve-marker
> retrieve-position="first-starting-within-page"
> retrieve-boundary="page" retrieve-class-name="code"/>
>      <fo:block>-</fo:block>

Glen, I think this is your problem. Try placing the minus inside a fo:inline 
instead of a fo:block.

>      <fo:retrieve-marker
> retrieve-position="last-ending-within-page"
> retrieve-boundary="page" retrieve-class-name="code"/>
>   </fo:block>
> </fo:table-cell>

<snip/>

> Question:  What is the combination of
> white-space-collapse, white-space-treatment, and/or
> linefeed-treatment I need to use, and where should I
> specify them in the snippet above, in order to get the
> output as desired?

linefeeds are discarded by default, playing with these properties will only 
introduce extra linefeeds into your output.

Chris


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