Hi everybody,

I'm using FOP 0.20.5 in a servlet. I'm trying to put a larger text (1 page long) with couple of paragraphs in a PDF document. I want to have the text justified so i'm doing it like this:

<fo:block white-space-collapse="false" text-align="justify" text-align-last="start">
Hi everyone

some txt including linebreaks some txt including linebreaks some txt including linebreaks some txt including linebreaks some txt including

some txt including linebreaks some txt including linebreaks some txt including linebreaks some txt including linebreaks some txt including linebreaks some txt including linebreaks

some greetings
</fo:block>

and i get:

Hi                                                      everyone

some    txt    including    linebreaks       some txt
including    linebreaks     some     txt     including
linebreaks     some    txt    including    linebreaks
some                        txt                       including

some      txt      including      linebreaks       some
txt including linebreaks some txt including linebreaks some txt including
linebreaks     some      txt including      linebreaks
some         txt           including             linebreaks

some greetings


even "Hi everyone" line is justified! also when longer lines are wrapped their ending is justified. Only last line - "some greetings" is aligned to the left.
text-align docs says: *
justify*
...the last (or only) line of any block, and any lines in the block ending in U+000A, will be aligned in accordance with the "text-align-last" property value...i tried to write the whole text as a one line with &#x000A; instead of linebreaks but it didn't change anything. I would like also to keep the whole text in a single block, so I don't want to split it into several blocks. Can anyone tell me what may be wrong?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to