Treat <option> and <optgroup> as block (#8620)

This commit is contained in:
fisker Cheung authored and GitHub committed 2020-06-24 18:33:13 +08:00
1 parent 4dd750b727
commit 63a37a2a1d
3 files changed
+36 -28

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
#### Treat `<select>` and `<optgroup>` as inline-block ([#8275](https://github.com/prettier/prettier/pull/8275) by [@thorn0](https://github.com/thorn0))
#### Treat `<select>` as inline-block and `<optgroup>`/`<option>` as block ([#8275](https://github.com/prettier/prettier/pull/8275) by [@thorn0](https://github.com/thorn0), [#8620](https://github.com/prettier/prettier/pull/8620) by [@fisker](https://github.com/fisker))
Now Prettier knows that it's safe to add whitespace inside `select` and `optgroup` tags.
Now Prettier knows that it's safe to add whitespace inside `select`, `option` and `optgroup` tags.
<!-- prettier-ignore -->
```html