Index: pkg/unittest/lib/src/config.dart |
diff --git a/pkg/unittest/lib/src/config.dart b/pkg/unittest/lib/src/config.dart |
index 73de212d31f4f54ccf3b0a0f85dba770a45ea3b2..2cd2334b07d6a3569404f59aeb5048b90f2070d6 100644 |
--- a/pkg/unittest/lib/src/config.dart |
+++ b/pkg/unittest/lib/src/config.dart |
@@ -146,7 +146,7 @@ class Configuration { |
// TODO(nweiz): Use this simpler code once issue 2980 is fixed. |
// return str.replaceAll(new RegExp("^", multiLine: true), " "); |
- return Strings.join(str.split("\n").map((line) => " $line"), "\n"); |
+ return str.split("\n").map((line) => " $line").join("\n"); |
} |
/** Handle errors that happen outside the tests. */ |