You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by an...@apache.org on 2002/01/09 20:22:38 UTC
cvs commit: xml-xerces/java/samples/xni Writer.java
andyc 02/01/09 11:22:38
Modified: java/samples/xni Writer.java
Log:
Minor output adjustment.
Revision Changes Path
1.7 +2 -2 xml-xerces/java/samples/xni/Writer.java
Index: Writer.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/samples/xni/Writer.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- Writer.java 7 Jan 2002 14:54:47 -0000 1.6
+++ Writer.java 9 Jan 2002 19:22:38 -0000 1.7
@@ -84,7 +84,7 @@
*
* @author Andy Clark, IBM
*
- * @version $Id: Writer.java,v 1.6 2002/01/07 14:54:47 elena Exp $
+ * @version $Id: Writer.java,v 1.7 2002/01/09 19:22:38 andyc Exp $
*/
public class Writer
extends XMLDocumentParser
@@ -286,7 +286,7 @@
/** Comment. */
public void comment(XMLString text, Augmentations augs) throws XNIException {
if (!fCanonical) {
- if (fSeenRootElement) {
+ if (fSeenRootElement && fElementDepth == 0) {
fOut.print('\n');
}
fOut.print("<!--");
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org