Skip to content

Commit

Permalink
Let inspect() print nested, empty, bracketed lists. (#1547)
Browse files Browse the repository at this point in the history
Co-authored-by: Natalie Weizenbaum <nweiz@google.com>
  • Loading branch information
Awjin Ahn and nex3 committed Dec 10, 2021
1 parent c59fee0 commit 1798a7c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 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

### 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 pkg/sass_api/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ environment:
sdk: '>=2.12.0 <3.0.0'

dependencies:
sass: 1.45.0
sass: 1.45.1

dependency_overrides:
sass: {path: ../..}
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
version: 1.45.1-dev
description: A Sass implementation in Dart.
homepage: https://github.com/sass/dart-sass

Expand Down

0 comments on commit 1798a7c

Please sign in to comment.