Preserve empty lines after function calls in parenthesized values (#19960)
This commit is contained in:
1 parent
6fa07d46ea
commit
5220adba96
8 files changed
+300
No files matched your search
@@ -0,0 +1,33 @@
|
||||
#### Preserve empty lines after function calls in parenthesized values (#19960 by @kovsu)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```css
|
||||
/* Input */
|
||||
a {
|
||||
background: linear-gradient(
|
||||
to right,
|
||||
rgba(0, 0, 0, 0.5) calc(50% - 1px),
|
||||
|
||||
transparent calc(50% + 1px)
|
||||
);
|
||||
}
|
||||
|
||||
/* Prettier stable */
|
||||
a {
|
||||
background: linear-gradient(
|
||||
to right,
|
||||
rgba(0, 0, 0, 0.5) calc(50% - 1px),
|
||||
transparent calc(50% + 1px)
|
||||
);
|
||||
}
|
||||
|
||||
/* Prettier main */
|
||||
a {
|
||||
background: linear-gradient(
|
||||
to right,
|
||||
rgba(0, 0, 0, 0.5) calc(50% - 1px),
|
||||
|
||||
transparent calc(50% + 1px)
|
||||
);
|
||||
}
|
||||
```
|
||||
Reference in new issue
Block a user