Claudenw commented on code in PR #627:
URL: https://github.com/apache/creadur-rat/pull/627#discussion_r2983054555


##########
apache-rat-core/src/main/java/org/apache/rat/report/xml/writer/XmlWriter.java:
##########
@@ -470,13 +126,10 @@ public IXmlWriter openElement(final CharSequence 
elementName) throws IOException
 
     @Override
     public IXmlWriter comment(final CharSequence text) throws IOException {
-        if (inElement) {
-            writer.write('>');
-        }
-        inElement = false;
-        writer.write("<!-- ");
-         content(text);
-         writer.write(" -->");
+        maybeCloseElement();

Review Comment:
   fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to