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 Alexander Koppelhuber <to...@gmx.net> on 2002/10/22 20:49:47 UTC

text-align="right" last line indent

How do i get rid of the indentation of the last
line when text-align is set to "right".
last-line-end-indent="0cm" doesn't work because
it's not implemented yet.

Regars Alexander Koppelhuber

AW: AW: text-align="right" last line indent

Posted by Alexander Koppelhuber <to...@gmx.net>.
Damn, never came to my mind that this could be a problem.
Thanks a lot, now it works.


-----Ursprungliche Nachricht-----
Von: J.Pietschmann [mailto:j3322ptm@yahoo.de]
Gesendet: Dienstag, 22. Oktober 2002 23:18
An: fop-user@xml.apache.org
Betreff: Re: AW: text-align="right" last line indent


Alexander Koppelhuber wrote:
> part of my fo file looks like this:
...
>             aaaaaa aaaaaaaaaaaaaaa aaaaaaaaaa aaaaaaa aaaaaaa aaaaaaaa
> aaaaaaaaaaaaaaa
>       </fo:block>
>
> The problem is that the text is aligned to the right (the way it should
be)
> but each last line gets an indent of lets say 5mm from the right border.

I'd guess there is a space there. Try
              aaaaaa aaaaaaaaaaaaaaa aaaaaaaaaa aaaaaaa aaaaaaa aaaaaaaa
  aaaaaaaaaaaaaaa</fo:block>

J.Pietschmann


Re: AW: text-align="right" last line indent

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Alexander Koppelhuber wrote:
> part of my fo file looks like this:
...
>             aaaaaa aaaaaaaaaaaaaaa aaaaaaaaaa aaaaaaa aaaaaaa aaaaaaaa
> aaaaaaaaaaaaaaa
>       </fo:block>
> 
> The problem is that the text is aligned to the right (the way it should be)
> but each last line gets an indent of lets say 5mm from the right border.

I'd guess there is a space there. Try
              aaaaaa aaaaaaaaaaaaaaa aaaaaaaaaa aaaaaaa aaaaaaa aaaaaaaa
  aaaaaaaaaaaaaaa</fo:block>

J.Pietschmann


AW: text-align="right" last line indent

Posted by Alexander Koppelhuber <to...@gmx.net>.
part of my fo file looks like this:
  <fo:flow flow-name="xsl-region-body" font-family="Helvetica"
text-align="end" text-align-last="end">
      <fo:block font-size="33pt" space-before="10mm" >
           Von Mensch zu Mensch.
      </fo:block>
      <fo:block font-size="73pt" space-before="10mm">
           Sprechen Sie mit mir personlich
      <fo:leader leader-pattern="space"/>
      </fo:block>
         <fo:block font-size="33pt" space-before="10mm">
            LAbg. Martina Puhringer
      </fo:block>
      <fo:block font-size="33pt" space-before="10mm">
          <fo:leader leader-pattern="space"/>
            aaaaaa aaaaaaaaaaaaaaa aaaaaaaaaa aaaaaaa aaaaaaa aaaaaaaa
aaaaaaaaaaaaaaa
      </fo:block>

The problem is that the text is aligned to the right (the way it should be)
but each last line gets an indent of lets say 5mm from the right border.
So the last line of a block, or the whole block if it's just one line, gets
moved
a litte towards the left border. I don't want this indentation.
I don't know why there's any indentation at all, because it works fine with
text-align="left".

Any ideas?

-----Ursprungliche Nachricht-----
Von: J.Pietschmann [mailto:j3322ptm@yahoo.de]
Gesendet: Dienstag, 22. Oktober 2002 22:40
An: fop-user@xml.apache.org
Betreff: Re: text-align="right" last line indent


Alexander Koppelhuber wrote:
> How do i get rid of the indentation of the last
> line when text-align is set to "right".
> last-line-end-indent="0cm" doesn't work because
> it's not implemented yet.

Special handling of last line indentation is not implemented
at all.
You can try to put a <fo:leader leader-pattern="space"/>
at the end of the block, it should expand and push any text
leftwards, if this is what you want.

J.Pietschmann


Re: text-align="right" last line indent

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Alexander Koppelhuber wrote:
> How do i get rid of the indentation of the last
> line when text-align is set to "right".
> last-line-end-indent="0cm" doesn't work because
> it's not implemented yet.

Special handling of last line indentation is not implemented
at all.
You can try to put a <fo:leader leader-pattern="space"/>
at the end of the block, it should expand and push any text
leftwards, if this is what you want.

J.Pietschmann