diff --git a/CHANGELOG.md b/CHANGELOG.md index baa58ff..52c128f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.0.2 +* bugfixes + * flutter test would sometimes emit a \u0001 character, and now most control characters are xml-escaped + * use newlines instead of the text '\n\n' + ## 2.0.1 * documentation update diff --git a/lib/src/impl/xml.dart b/lib/src/impl/xml.dart index 77cebc5..ba85860 100644 --- a/lib/src/impl/xml.dart +++ b/lib/src/impl/xml.dart @@ -46,10 +46,7 @@ final _highlyDiscouraged = RegExp( '[\u0001-\u0008\u000b\u000c\u000e-\u001f\u007f-\u0084\u0086-\u009f]', unicode: true); -String _mapDiscouraged(Match match) => match - .group(0)! - .codeUnits - .map((unit) => '&#$unit;') - .join(); +String _mapDiscouraged(Match match) => + match.group(0)!.codeUnits.map((unit) => '&#$unit;').join(); XmlName _name(String name) => XmlName.fromString(name); diff --git a/pubspec.yaml b/pubspec.yaml index c106902..e25caad 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: junitreport -version: 2.0.2-dev +version: 2.0.2 description: Generate JUnit XML reports from dart test runs. Transforms the output of dart or flutter tests to JUnit style XML