xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Pepping <spepp...@leverkruid.nl>
Subject Re: white-space-collapse not working in trunk?
Date Mon, 13 Feb 2006 20:41:30 GMT
On Mon, Feb 13, 2006 at 10:52:07PM +0800, Manuel Mall wrote:
> On Monday 13 February 2006 21:54, Sven wrote:
> > Hi there,
> >
> > again a short question: The FAQ is telling that using
> > white-space-collapse="false" in a <fo:block/> is all you need to
> > output preformatted text. Well, not for me. Whitespaces will still
> > collapse. I am using the latest trunk (revision 377250). Am I doing
> > something worng or is this a bug?
> >
> It's a known bug. Especially leading white space, that is white space at 
> the beginning of each line is incorrectly removed.

Is it a bug? The default values of suppress-at-line-break="auto" and
white-space-treatment="ignore-if-surrounding-linefeed" specify that
the space character is removed around a line break, even when
white-space-collapse="false". I refer here to the draft of XSL 1.1,
which in our opinion clarifies the confusing corresponding parts of
XSL 1.0. See our efforts to come to grips with this on the Wiki:
http://wiki.apache.org/xmlgraphics-fop/LineLayout/WhitespaceHandling.

Note that TeX would show a similar behaviour: It removes white space
at the start of a line, even when white space is not collapsed.

Maybe you should use a zero-width fo:inline element at the start of
the line to suppress the suppression.

Regards, Simon

> > <fo:block border-bottom="solid 1px gray" border-top="solid 1px gray"
> > linefeed-treatment="preserve" white-space-collapse="false"
> > font-size="10pt" font-family="Courier">
> > &lt;agent xmlns="http://jadex.sourceforge.net/jadex"
> >     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >     xsi:schemaLocation="http://jadex.sourceforge.net/jadex
> >                         http://jadex.sourceforge.net/jadex-0.94.xsd"
> >     name="AgentTypeName"
> >     package="your.package.here"&gt;
> >
> >     &lt;imports&gt;
> >         &lt;!-- 1.) java imports --&gt;
> >     &lt;/imports&gt;
> >
> >     &lt;capabilities&gt;
> >         &lt;!-- 2.) by this agent used capabilties --&gt;
> >     &lt;/capabilities&gt;
> >
> >     &lt;beliefs&gt;
> >         &lt;!-- 3.)beliefs of this agent --&gt;
> >     &lt;/beliefs&gt;
> >
> >     &lt;goals&gt;
> >         &lt;!-- 4.) The goals the agent may have --&gt;
> >     &lt;/goals&gt;
> >
> >     &lt;plans&gt;
> >         &lt;!-- 5.) The plan library --&gt;
> >     &lt;/plans&gt;
> >
> >     &lt;events&gt;
> >         &lt;!-- 6.) All known events (messages, goals and internal
> > events) --&gt;
> >     &lt;/events&gt;
> >
> >     &lt;expressions&gt;
> >         &lt;!-- 7.) used expressions and conditions --&gt;
> >     &lt;/expressions&gt;
> >
> >     &lt;properties&gt;
> >         &lt;!-- 8.) static values needed by this agent --&gt;
> >     &lt;/properties&gt;
> >
> >     &lt;initialstates&gt;
> >         &lt;!-- 9.) possibility to start agent with different initial
> > states,
> >                   like inital goals, plans or beliefs e.g. --&gt;
> >     &lt;/initialstates&gt;
> >
> > &lt;/agent&gt;
> >                     test XXX
> >
> >                 </fo:block>

-- 
Simon Pepping
home page: http://www.leverkruid.nl


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message