Skip to content

Commit 2d70824

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: Gradient joins with newlines ( Fixes #20 )
1 parent 3318299 commit 2d70824

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Gradient.types.ps1xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ $gradientValues = @(foreach ($in in $this.input) {
5959
}
6060
})
6161

62+
$ShallowJoiner = (', ' + [Environment]::NewLine + (' ' * 2))
6263
if ($gradientValues) {
6364
if (-not $gradientTypes) { $gradientTypes = 'radial-gradient'}
6465
$gradientCss = @(foreach ($gradientType in $gradientTypes) {
@@ -67,7 +68,7 @@ if ($gradientValues) {
6768
$(
6869
@(
6970
$gradientValues
70-
) -join (', ' + [Environment]::NewLine + (' ' * 2))
71+
) -join $ShallowJoiner
7172
)
7273
))"
7374
}) -join ', '

0 commit comments

Comments
 (0)