changeset 31:6935f015acd6

remove trailing spaces for the javap report
author afedorch
date Mon, 05 Mar 2018 17:59:16 -0800
parents d9269c28de65
children d63621272f74
files src/classes/com/sun/tdk/jcov/report/html/CoverageReport.java
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/classes/com/sun/tdk/jcov/report/html/CoverageReport.java	Thu Mar 01 11:29:51 2018 -0800
+++ b/src/classes/com/sun/tdk/jcov/report/html/CoverageReport.java	Mon Mar 05 17:59:16 2018 -0800
@@ -1459,7 +1459,10 @@
 
                 String unCover = theClass.isLineInAnc(numLine) ? "nbHitsAnc" : "nbHitsUncovered";
                 String nbHitsCov = isGreen ? "nbHitsCovered" :  unCover;
-                String htmlStr = javapLine.getTextLine().replaceAll("\\<", "&#60;").replaceAll("\\>", "&#62;");
+                String htmlStr = javapLine.getTextLine().
+                        replaceAll("\\<", "&#60;").
+                        replaceAll("\\>", "&#62;").
+                        replaceAll("\\s++$", "");
 
                 pw.println(" <td>" + numLine + link + "</td>");
                 pw.println(" <td class=\"" + nbHitsCov + "\">&nbsp;" + "   " + "</td>");