Appears to be true even if there is only ONE space character where the
formatter decides to break... 

My example wasn't very good, but there were never sequence of more than one
space character. This particular data also had no newline characters at all.

I'm using FOP to produce a PDF from data users input into a database, using
an HTML textarea input object. They are free to use newlines, indenting and
spacing as they want.

I never know how they are going to format it, so that's the reason for
linefeed-treatment="preserve" white-space-treatment="preserve".

I'm going to try to "school" my users to start each new line with a space,
including the first one. That seems to fix it.

Thanks,
Pete Allison

-----Original Message-----
From: Andreas Delmelle [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 22, 2008 11:50 AM
To: [email protected]
Subject: Re: Extra space?

On Oct 22, 2008, at 00:14, Allison, Peter S. (MSFC-NNM04AA02C) [MORGAN]
wrote:

> Not sure how to describe this problem... I'm using 0.94...
>
> Heres my data:
> <snip />
> It's one long line, with no newline characters.
>
> <snip />
>
> Notice after the line wraps, there is a space printed (I'm assuming 
> it's a space) before the rest of the line of text is printed.

Yes, this is a consequence of 'white-space-treatment="preserve"'.  
Currently, the layout-algorithm produces suboptimal results, since, if there
is a sequence of space characters, the algorithm will prefer a break before
the last one, making that one end up as the first character on the next
line. (see also Bugzilla 45097: https://
issues.apache.org/bugzilla/show_bug.cgi?id=45097)

As far as I can derive from your example, you may be able to get around it
by either using 'white-space-treatment="ignore-if-following-
linefeed"' or not specifying it at all (= default 'ignore'), since you don't
seem to have blocks of preformatted text (with indenting that should be
preserved).


HTH!

Cheers

Andreas

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



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

Reply via email to