changeset 959:892e9d690259

results: JSON result tidyer should take care of CR symbol on Windows as well.
author shade
date Sat, 16 Aug 2014 00:54:17 +0400
parents e777272ea3e2
children 3d44d68e45be
files jmh-core/src/main/java/org/openjdk/jmh/results/format/JSONResultFormat.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/results/format/JSONResultFormat.java	Sat Aug 16 00:31:17 2014 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/results/format/JSONResultFormat.java	Sat Aug 16 00:54:17 2014 +0400
@@ -199,6 +199,7 @@
     }
 
     private String tidy(String s) {
+        s = s.replaceAll("\r", "");
         s = s.replaceAll("\n", " ");
         s = s.replaceAll(",", ",\n");
         s = s.replaceAll("\\{", "{\n");