Re: How can I force a space in rendered output?

2003-01-24 Thread Paul Washinger

I use #160; and have not had any problems with this.



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



Re: How can I force a space in rendered output?

2003-01-24 Thread J.Pietschmann
Patrick Dean Rusk wrote:
It doesn't work in the sense that the result of using the
fo:character character= 
is visually indistinguishable from leaving it out.
Ah, yes there is indeed a bug there:
LineArea.java
public int addCharacter(char data, LinkSet ls, boolean ul) {
...
// if whitespace-collapse == true, discard character
if (Character.isSpaceChar(data)
 whiteSpaceCollapse == WhiteSpaceCollapse.TRUE) {
return org.apache.fop.fo.flow.Character.OK;
}
Bad idea... (should use addText, which also handles text decoration,
links and other stuff)
fo:block font-family=serif font-size=8pt
fo:character character=C/
xsl:value-of select=./
/fo:block
[snip]
Note the three blocks above.  If I had to look at that and guess for 
each
whether there would be a space after the C, I would say the following:
1) Don't know.  Depends upon whether the new line is collapsed into a space.
2) I would give a higher probability of there being a space after the C,
because of the explicit extra spaces put in.
Well it pays off to learn the details of the tools you
are using. In this case, its XSLT's whitespace handling
in style sheets, well specified in
 file:///C:/cygwin/home/pietsch/dnload/REC-xslt-19991116.html#strip
If you need whitespace in the transformation result,
use something like
  xsl:text /xsl:text
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]