From 40bd882f3e721bc7677371dc92aae7bf9ffdd6a6 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sun, 23 Jun 2024 21:03:12 +0200 Subject: [PATCH] Fix cpd xslt sample templates --- pmd-core/etc/xslt/cpdhtml-v2.xslt | 20 ++++++++++--------- pmd-core/etc/xslt/cpdhtml.xslt | 20 ++++++++++--------- .../sourceforge/pmd/cpd/SampleCpdReport.xml | 11 +++++++--- 3 files changed, 30 insertions(+), 21 deletions(-) diff --git a/pmd-core/etc/xslt/cpdhtml-v2.xslt b/pmd-core/etc/xslt/cpdhtml-v2.xslt index 0856de0739..614d0f793f 100644 --- a/pmd-core/etc/xslt/cpdhtml-v2.xslt +++ b/pmd-core/etc/xslt/cpdhtml-v2.xslt @@ -1,5 +1,7 @@ - + @@ -68,10 +70,10 @@ Approximate number of bytes - - - - + + + + @@ -91,7 +93,7 @@ - + @@ -133,7 +135,7 @@ - + @@ -141,7 +143,7 @@ - + @@ -152,7 +154,7 @@
columnendcolumnlineendlinepath
-
+
diff --git a/pmd-core/etc/xslt/cpdhtml.xslt b/pmd-core/etc/xslt/cpdhtml.xslt index 18e2f7b5a0..97265d97c0 100644 --- a/pmd-core/etc/xslt/cpdhtml.xslt +++ b/pmd-core/etc/xslt/cpdhtml.xslt @@ -1,11 +1,13 @@ - + 30 - + @@ -46,10 +48,10 @@ Approx # bytes - - - - + + + +

@@ -58,13 +60,13 @@

- +
IDFilesLines
- +
../src/.html# line
@@ -82,7 +84,7 @@
diff --git a/pmd-core/src/test/resources/net/sourceforge/pmd/cpd/SampleCpdReport.xml b/pmd-core/src/test/resources/net/sourceforge/pmd/cpd/SampleCpdReport.xml index e0e6b0c465..ce6169ae59 100644 --- a/pmd-core/src/test/resources/net/sourceforge/pmd/cpd/SampleCpdReport.xml +++ b/pmd-core/src/test/resources/net/sourceforge/pmd/cpd/SampleCpdReport.xml @@ -1,8 +1,13 @@ - + - - + +