From d817a178eff64e7f70dd098a55f808c72c6f1c96 Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Sat, 15 Oct 2005 13:29:00 +0000 Subject: [PATCH] PR: MNG-1195 Submitted by: Edwin Punzalan Fix validation of generated HTML git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@321335 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/plugin/checkstyle/CheckstyleReportGenerator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maven-plugins/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java b/maven-plugins/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java index 5cc83dc8df..c1c01cecdc 100644 --- a/maven-plugins/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java +++ b/maven-plugins/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReportGenerator.java @@ -186,7 +186,7 @@ public class CheckstyleReportGenerator sink.tableRow(); sink.tableCell(); - sink.link( "#" + filename ); + sink.link( "#" + filename.replace( '/', '.' ) ); sink.text( filename ); sink.link_(); sink.tableCell_(); @@ -221,7 +221,7 @@ public class CheckstyleReportGenerator sink.section1(); sink.sectionTitle1(); - sink.anchor( file ); + sink.anchor( file.replace( '/', '.' ) ); sink.text( file ); sink.anchor_(); sink.sectionTitle1_();