File 00-doxia1.patch of Package checkstyle
diff -up checkstyle-checkstyle-10.21.2/src/main/java/com/puppycrawl/tools/checkstyle/site/ExampleMacro.java.p00 checkstyle-checkstyle-10.21.2/src/main/java/com/puppycrawl/tools/checkstyle/site/ExampleMacro.java
--- checkstyle-checkstyle-10.21.2/src/main/java/com/puppycrawl/tools/checkstyle/site/ExampleMacro.java.p00 2025-01-31 19:33:41.084817213 +0300
+++ checkstyle-checkstyle-10.21.2/src/main/java/com/puppycrawl/tools/checkstyle/site/ExampleMacro.java 2025-01-31 19:33:51.704953568 +0300
@@ -174,7 +174,7 @@ public class ExampleMacro extends Abstra
* @param snippet the snippet to write.
*/
private static void writeSnippet(Sink sink, String snippet) {
- sink.verbatim(SinkEventAttributeSet.BOXED);
+ // sink.verbatim(SinkEventAttributeSet.BOXED);
final String text = NEWLINE
+ String.join(NEWLINE, snippet.stripTrailing(), INDENTATION);
sink.text(text);
diff -up checkstyle-checkstyle-10.21.2/src/main/java/com/puppycrawl/tools/checkstyle/site/XdocsTemplateSink.java.p00 checkstyle-checkstyle-10.21.2/src/main/java/com/puppycrawl/tools/checkstyle/site/XdocsTemplateSink.java
--- checkstyle-checkstyle-10.21.2/src/main/java/com/puppycrawl/tools/checkstyle/site/XdocsTemplateSink.java.p00 2025-01-31 19:28:51.961105057 +0300
+++ checkstyle-checkstyle-10.21.2/src/main/java/com/puppycrawl/tools/checkstyle/site/XdocsTemplateSink.java 2025-01-31 19:32:30.751914184 +0300
@@ -53,14 +53,14 @@ public class XdocsTemplateSink extends X
this.encoding = encoding;
}
- /**
- * Place the XML declaration at the top of the file.
- */
- @Override
- public void body() {
- write("<?xml version=\"1.0\" encoding=\"" + encoding + "\"?>");
- writeEOL();
- }
+ ///**
+ // * Place the XML declaration at the top of the file.
+ // */
+ //@Override
+ //public void body() {
+ // write("<?xml version=\"1.0\" encoding=\"" + encoding + "\"?>");
+ // writeEOL();
+ //}
/**
* Place a newline at the end of the file, flush the writer, and reset the sink.
@@ -72,27 +72,27 @@ public class XdocsTemplateSink extends X
init();
}
- /**
- * Write an external link. We override this method because the default implementation
- * adds a {@code class="external-link"} attribute to the link which we don't want.
- *
- * @param href the link.
- */
- @Override
- public void link(String href) {
- final MutableAttributeSet attributes = new SinkEventAttributeSet();
- attributes.addAttribute(SinkEventAttributes.HREF, href);
- writeStartTag(HtmlMarkup.A, attributes);
- }
+ ///**
+ // * Write an external link. We override this method because the default implementation
+ // * adds a {@code class="external-link"} attribute to the link which we don't want.
+ // *
+ // * @param href the link.
+ // */
+ //@Override
+ //public void link(String href) {
+ // final MutableAttributeSet attributes = new SinkEventAttributeSet();
+ // attributes.addAttribute(SinkEventAttributes.HREF, href);
+ // writeStartTag(HtmlMarkup.A, attributes);
+ //}
- /**
- * Write a table row tag. We override this method because the default implementation
- * adds a {@code align="top"} attribute to the row which we don't want.
- */
- @Override
- public void tableRow() {
- writeStartTag(TR);
- }
+ ///**
+ // * Write a table row tag. We override this method because the default implementation
+ // * adds a {@code align="top"} attribute to the row which we don't want.
+ // */
+ //@Override
+ //public void tableRow() {
+ // writeStartTag(TR);
+ //}
/**
* Write a table tag. We override this method because the default implementation