ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chr...@apache.org
Subject cvs commit: ant-antidote/src/java/org/apache/tools/ant/gui/xml XMLWriter.java
Date Tue, 07 Oct 2003 16:39:59 GMT
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message