Hello,
Sorry about the patch confusion. I see how the patches were bad.
Somehow my sources got corrupt. Here are the good patches. The first
one is for concreteelement, the second is for XML.java. The second
patch fixes my first patch (it had big problems for whitespace).
Sorry about all the confusion,
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
376a377
>
385,386c386,389
< out.write('\n');
< e.setTabLevel(tabLevel +
1);
---
> if (getNeedLineBreak()) {
> out.write('\n');
> e.setTabLevel(tabLevel + 1);
> }
394,395c397,400
< out.write('\n');
< putTabs(tabLevel + 1,
out);
---
> if (getNeedLineBreak()) {
> out.write('\n');
> putTabs(tabLevel + 1, out);
> }
408,410c413,417
< out.write('\n');
< if (tabLevel > 0)
< putTabs(tabLevel, out);
---
> if (getNeedLineBreak()) {
> out.write('\n');
> if (tabLevel > 0)
> putTabs(tabLevel, out);
> }
Index: XML.java
===================================================================
RCS file:
/products/cvs/master/ecs/src/java/org/apache/ecs/xml/XML.java,v
retrieving revision 1.2
diff -r1.2 XML.java
196,197d195
< int i = 0;
< int j = 0;
199d196
< i++;
201,202c198,201
< if (obj instanceof StringElement)
< j++;
---
> if (obj instanceof StringElement) {
> linebreak = false;
> break;
> }
204,205d202
< if (i ==j)
< linebreak = false;
--
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]