Jon,

Here is the diff.  I believe it is correct.  I first did a cvs update,
and then a cvs diff.  Bear with me, I'm knew at this. :)

This should add correct prettyprinting to the output(PrintWriter) method
(like output(OutputStream)), PLUS (and change this if it was done for a
reason), using the PrintWriter you now are able to get the child
elements in the correct FIFO order.  As you can see, before it was
getting the elements via the keys() method, which does no ordering.  Now
you get the elements via elements(), which keeps the ordering. (hehe I
just checked cvsweb.cgi, and it seems someone picked that one out
already)

Hope it works, sorry for the trouble,
Seth


Index: ConcreteElement.java
===================================================================
RCS file:
/products/cvs/master/ecs/src/java/org/apache/ecs/ConcreteElement.java,v
retrieving revision 1.17
diff -r1.17 ConcreteElement.java
375a376,377
> <<<<<<< ConcreteElement.java
>                       //Enumeration enum = registry.keys();
376a379,381
> =======
>             Enumeration enum = registryList.elements();
> >>>>>>> 1.17
385,386c390,393
<                                               out.write('\n');
<                                               e.setTabLevel(tabLevel +
1);
---
>                         if (getNeedLineBreak()) {
>                                                   out.write('\n');
>                                                   e.setTabLevel(tabLevel + 1);
>                         }
394,395c401,404
<                                               out.write('\n');
<                                               putTabs(tabLevel + 1,
out);
---
>                         if (getNeedLineBreak()) {
>                                                   out.write('\n');
>                                                   putTabs(tabLevel + 1, out);
>                         }
408,410c417,421
<                                       out.write('\n');
<                                       if (tabLevel > 0)
<                                               putTabs(tabLevel, out);
---
>                     if (getNeedLineBreak()) {
>                                           out.write('\n');
>                                           if (tabLevel > 0)
>                                                   putTabs(tabLevel, out);
>                     }


--
------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to