Skip to content

Commit

Permalink
Properly seralize empty, bracketed lists.
Browse files Browse the repository at this point in the history
  • Loading branch information
Awjin committed Dec 3, 2021
1 parent 9cb976e commit 406dcee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.45.1

* **Potentially breaking bug fix:** Fix a bug where `inspect()` was not
properly printing nested, empty, bracketed lists.

## 1.45.0-rc.2

### JS API
Expand Down
3 changes: 2 additions & 1 deletion lib/src/value/list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ class SassList extends Value {

/// @nodoc
@internal
bool get isBlank => asList.every((element) => element.isBlank);
bool get isBlank =>
!hasBrackets && asList.every((element) => element.isBlank);

List<Value> get asList => _contents;

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: sass
version: 1.45.0-rc.2
version: 1.45.1-dev
description: A Sass implementation in Dart.
homepage: https://github.com/sass/dart-sass

Expand Down

0 comments on commit 406dcee

Please sign in to comment.