This cleans up a little more how a comment gets output. It writeln()'s the
comment outside the
<project> tag (elementLevel ==0)
--
Jack J. Woehr # You measure democracy by the freedom it
Senior Consultant # gives its dissidents, not the freedom
Purematrix, Inc. # it gives its assimilated conformists.
www.purematrix.com # - Abbie Hoffman
Index: org/apache/tools/ant/gui/xml/XMLWriter.java
===================================================================
RCS file:
/home/cvspublic/ant-antidote/src/java/org/apache/tools/ant/gui/xml/XMLWriter.java,v
retrieving revision 1.5
diff -c -r1.5 XMLWriter.java
*** org/apache/tools/ant/gui/xml/XMLWriter.java 5 Oct 2003 19:31:07 -0000
1.5
--- org/apache/tools/ant/gui/xml/XMLWriter.java 6 Oct 2003 06:26:46 -0000
***************
*** 720,725 ****
--- 720,731 ----
write("<!--");
write(data);
write("-->");
+
+ // This next so that comments at elementLevel == 0
+ // (outside the project element) get a newline after each.
+ if (elementLevel < 1) {
+ writeln();
+ }
}
////////////////////////////////////////////////////////////////////
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]