commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-commons/modeler/src/java/org/apache/commons/modeler/util DomUtil.java
Date Mon, 14 Apr 2003 01:03:02 GMT
costin      2003/04/13 18:03:02

  Modified:    modeler/src/java/org/apache/commons/modeler/util
                        DomUtil.java
  Log:
  Indent on save
  
  Revision  Changes    Path
  1.6       +2 -0      jakarta-commons/modeler/src/java/org/apache/commons/modeler/util/DomUtil.java
  
  Index: DomUtil.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/modeler/src/java/org/apache/commons/modeler/util/DomUtil.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DomUtil.java	13 Apr 2003 17:08:00 -0000	1.5
  +++ DomUtil.java	14 Apr 2003 01:03:02 -0000	1.6
  @@ -65,6 +65,7 @@
   import javax.xml.transform.Transformer;
   import javax.xml.transform.TransformerConfigurationException;
   import javax.xml.transform.TransformerException;
  +import javax.xml.transform.OutputKeys;
   import javax.xml.transform.dom.DOMSource;
   import javax.xml.transform.stream.StreamResult;
   
  @@ -297,6 +298,7 @@
           TransformerFactory tf=TransformerFactory.newInstance();
           //identity
           Transformer t=tf.newTransformer();
  +        t.setOutputProperty(OutputKeys.INDENT, "yes");
           t.transform(new DOMSource( n ), new StreamResult( os ));
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message