diff --git a/CHANGELOG.md b/CHANGELOG.md index aee1b7c..83e8c3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.0.2 + +- Remove extra spaces from beginning of unified diff output. + # 0.0.1 - Initial, experimental release with just unified diff generation support. diff --git a/lib/src/update.dart b/lib/src/update.dart index fa0a482..fb496b8 100644 --- a/lib/src/update.dart +++ b/lib/src/update.dart @@ -30,7 +30,7 @@ final class Keep extends Update { const Keep(super.value, super.indexInSource, super.indexInTarget); @override - String toString() => ' $value'; + String toString() => ' $value'; } /// A value that is added in the target list. @@ -41,7 +41,7 @@ final class Insert extends Update { const Insert(super.value, super.indexInSource, super.indexInTarget); @override - String toString() => '+ $value'; + String toString() => '+$value'; } /// A value that is removed from the source list. @@ -52,5 +52,5 @@ final class Remove extends Update { const Remove(super.value, super.indexInSource, super.indexInTarget); @override - String toString() => '- $value'; + String toString() => '-$value'; } diff --git a/pubspec.yaml b/pubspec.yaml index 94ad045..f55dad5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: deviation description: A diff generation tool and library. -version: 0.0.1 +version: 0.0.2 repository: https://github.com/dart-community/deviation topics: