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"> > > <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"> > > > > <imports> > > <!-- 1.) java imports --> > > </imports> > > > > <capabilities> > > <!-- 2.) by this agent used capabilties --> > > </capabilities> > > > > <beliefs> > > <!-- 3.)beliefs of this agent --> > > </beliefs> > > > > <goals> > > <!-- 4.) The goals the agent may have --> > > </goals> > > > > <plans> > > <!-- 5.) The plan library --> > > </plans> > > > > <events> > > <!-- 6.) All known events (messages, goals and internal > > events) --> > > </events> > > > > <expressions> > > <!-- 7.) used expressions and conditions --> > > </expressions> > > > > <properties> > > <!-- 8.) static values needed by this agent --> > > </properties> > > > > <initialstates> > > <!-- 9.) possibility to start agent with different initial > > states, > > like inital goals, plans or beliefs e.g. --> > > </initialstates> > > > > </agent> > > test XXX > > > > </fo:block> -- Simon Pepping home page: http://www.leverkruid.nl --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
