W3C home > Mailing lists > Public > www-xsl-fo@w3.org > November 2001

Re: FO Leader (Newbie) Question

From: David Tolpin <dvd@renderx.com>
Date: Thu, 22 Nov 2001 10:40:27 +0400 (AMT)
Message-Id: <200111220640.KAA11829@mix.aua.am>
To: tmohammad@entier-solutions.com (Tanzila Mohammad)
Cc: www-xsl-fo@w3.org
> 
> Does <fo:leader> produce a space-before the line by default?
> 
> i.e.
> 
> -------------------------------------------------------------
> ytuyuytuyyutyutuytyty yuyyut uytuytu uyt ytyt uuy tyut ytuy t
> <!--space here-->
> --------------------------------------------------------------
> 
> Is there anyway to remove the space or another method to generate the
> following?
> 
> -------------------------------------------------------------
> ytuyuytuyyutyutuytyty yuyyut uytuytu uyt ytyt uuy tyut ytuy t
> --------------------------------------------------------------
> 
> I have been using the following code, with no space-before or space-after
> attributes defined, and I get the space:
> ....
>     <fo:table-cell>
>          <fo:block text-align="center">
>             <fo:leader leader-length="1.875cm"
>                   leader-pattern="rule"
>              rule-thickness="0.5pt" color="black"/>
>          </fo:block>
>       </fo:table-cell>

leader is an inline element. It forms a line, the line height is determined
by the corresponding traits. The space you get is not space-before, it is interline
spacing. Override line height with a value you actually need. 

David Tolpin
RenderX
Received on Thursday, 22 November 2001 01:39:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:08 GMT