diff --git a/src/main/java/org/codehaus/plexus/util/xml/XmlWriterUtil.java b/src/main/java/org/codehaus/plexus/util/xml/XmlWriterUtil.java index 913b5f27..e14dcb2d 100644 --- a/src/main/java/org/codehaus/plexus/util/xml/XmlWriterUtil.java +++ b/src/main/java/org/codehaus/plexus/util/xml/XmlWriterUtil.java @@ -186,6 +186,16 @@ public static void writeComment( XMLWriter writer, String comment, int indent, i comment = "null"; } + while ( comment.contains( "" ) ) + { + comment = comment.replace( "-->", "" ); + } + if ( indent < 0 ) { indent = 0;