diff --git a/src/types/dictionary.typ b/src/types/dictionary.typ index 3bc9a8a..4b94150 100644 --- a/src/types/dictionary.typ +++ b/src/types/dictionary.typ @@ -73,7 +73,7 @@ scope: (..scope, str(key)) ) - if (entry != none) { + if (entry != none or ctx.remove-optional-none == false) { it.insert(key, entry) } diff --git a/tests/assertions/comparative/ref/1.png b/tests/assertions/comparative/ref/1.png deleted file mode 100644 index a70bb85..0000000 Binary files a/tests/assertions/comparative/ref/1.png and /dev/null differ diff --git a/tests/contexts/remove-optional-none/ref/1.png b/tests/contexts/remove-optional-none/ref/1.png index 9dc1cbe..ed2ba3e 100644 Binary files a/tests/contexts/remove-optional-none/ref/1.png and b/tests/contexts/remove-optional-none/ref/1.png differ diff --git a/tests/types/any/ref/1.png b/tests/types/any/ref/1.png deleted file mode 100644 index e3827b4..0000000 Binary files a/tests/types/any/ref/1.png and /dev/null differ diff --git a/tests/types/boolean/ref/1.png b/tests/types/boolean/ref/1.png deleted file mode 100644 index 7b5adc2..0000000 Binary files a/tests/types/boolean/ref/1.png and /dev/null differ diff --git a/tests/types/datetime/ref/1.png b/tests/types/datetime/ref/1.png deleted file mode 100644 index af07d5f..0000000 Binary files a/tests/types/datetime/ref/1.png and /dev/null differ diff --git a/tests/types/tuple/test.typ b/tests/types/tuple/test.typ index adf98d3..0bfa3d5 100644 --- a/tests/types/tuple/test.typ +++ b/tests/types/tuple/test.typ @@ -5,7 +5,7 @@ let test-tuple = ( "123", "email@address.co.uk", - // 1.1 + 1.1 ) z.parse(