chrisw      2003/10/07 09:39:59

  Modified:    src/java/org/apache/tools/ant/gui/xml XMLWriter.java
  Log:
  Cleans up a little more how a comment gets persisted to an XML-File.
  
  Revision  Changes    Path
  1.6       +7 -1      
ant-antidote/src/java/org/apache/tools/ant/gui/xml/XMLWriter.java
  
  Index: XMLWriter.java
  ===================================================================
  RCS file: 
/home/cvs/ant-antidote/src/java/org/apache/tools/ant/gui/xml/XMLWriter.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- XMLWriter.java    5 Oct 2003 19:31:07 -0000       1.5
  +++ XMLWriter.java    7 Oct 2003 16:39:59 -0000       1.6
  @@ -720,6 +720,12 @@
        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]

Reply via email to