W3C home > Mailing lists > Public > www-xsl-fo@w3.org > May 2006

Re: Line completion with '-' character loop

From: Werner DonnÚ <werner.donne@re.be>
Date: Tue, 30 May 2006 14:11:32 +0200
Message-ID: <447C3674.7070106@re.be>
To: Oliver HernÓndez Valls <ohernandez@notariado.org>
Cc: www-xsl-fo@w3.org

Olivier,

You can use fo:leader for this. Set its leader-pattern property
to "rule" and make sure the text-align-last property of the
surrounding block, which contains a "line", is set to "justify".

Regards,

Werner.

Oliver HernÓndez Valls wrote:
> 
> Hello,
>    I'm working in an application where we need to add a character loop
> ('-' for example) until the end of each line to enshure that nothing is
> added to the line (document manipulation).
> 
> 
> ______________________________________________________________________
> |   For example each line in the document must end like this one and |
> |the '-' characters must not extend to the next line.----------------|
> |   This is another example line.------------------------------------|
> ..                                                                    .
> ..                                                                    .
> ^                                                                    ^
> margin init                                                 margin end
> 
> 
>    My questions are:
> - Is it possible to do this? How?
> 
> - I tried to add an external-graphic line.png to the end of each line
> but it overfows and as I'm working with apache fo and no
> overflow="hidden" is implemented this solution doesn't work neither.
> 
>     Any suggestion?
> 
> thanks in advance!
> 
> Oliver HernÓndez Valls
> ----------------------
> Java developer
> 
> 
> 

-- 
Werner DonnÚ  --  Re
Engelbeekstraat 8
B-3300 Tienen
tel: (+32) 486 425803	e-mail: werner.donne@re.be
Received on Tuesday, 30 May 2006 12:10:29 GMT

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