OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Preserving white space


I noticed that with the 0.90 FOP I'm losing the white space indentation 
in elements like this one:

<fo:block space-before.minimum="0.5em" space-before.optimum="1em" 
space-before.maximum="2em" space-after.minimum="0.5em" 
space-after.optimum="1em" space-after.maximum="2em" 
id="d4e1638"><fo:block space-before.minimum="0.8em" 
space-before.optimum="1em" space-before.maximum="1.2em" 
space-after.minimum="0.8em" space-after.optimum="1em" 
space-after.maximum="1.2em" hyphenate="false" font-family="monospace" 
text-align="start" wrap-option="no-wrap" id="d4e1639" 
white-space-collapse="false" white-space-treatment="preserve" 
linefeed-treatment="preserve">class AddInts {

   public static void main (String args[]) {

     int i = 1;
     int j = 2;

     System.out.println("i is " + i);
     System.out.println("j is " + j);

     int k = i + j;
     System.out.println("i + j is " + k);

     k = i - j;
     System.out.println("i - j is " + k);

   }

}
</fo:block></fo:block>

This seems to be a known issue with white-space-treatment="preserve". I 
could swear this used to work a few years ago. Anything I can do about it?

-- 
Elliotte Rusty Harold  elharo@metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]