-
-
Notifications
You must be signed in to change notification settings - Fork 534
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(html): fix html configuration having no effect
- Loading branch information
Showing
6 changed files
with
89 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
crates/biome_html_formatter/tests/specs/html/elements/whitespace/ignore/long-content.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed dapibus velit non justo tempus pretium. Praesent orci lorem, pellentesque sit amet ullamcorper sed, consectetur quis odio. In felis nulla, pellentesque a dolor eget, semper vestibulum nisi. Sed imperdiet dui a massa placerat ullamcorper. Praesent eleifend purus eget arcu faucibus, ac fringilla nulla aliquet. Aliquam id accumsan libero. Duis efficitur nisi quis massa mollis ultricies. Sed condimentum sit amet urna in cursus. Ut id tortor vestibulum, mollis enim sed, ornare ipsum. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Ut nec dapibus est. Maecenas orci purus, blandit eu faucibus eu, lacinia id turpis.</span> |
72 changes: 72 additions & 0 deletions
72
...ome_html_formatter/tests/specs/html/elements/whitespace/ignore/long-content.html.snap.new
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- | ||
source: crates/biome_formatter_test/src/snapshot_builder.rs | ||
assertion_line: 211 | ||
info: elements/whitespace/ignore/long-content.html | ||
--- | ||
# Input | ||
|
||
```html | ||
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed dapibus velit non justo tempus pretium. Praesent orci lorem, pellentesque sit amet ullamcorper sed, consectetur quis odio. In felis nulla, pellentesque a dolor eget, semper vestibulum nisi. Sed imperdiet dui a massa placerat ullamcorper. Praesent eleifend purus eget arcu faucibus, ac fringilla nulla aliquet. Aliquam id accumsan libero. Duis efficitur nisi quis massa mollis ultricies. Sed condimentum sit amet urna in cursus. Ut id tortor vestibulum, mollis enim sed, ornare ipsum. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Ut nec dapibus est. Maecenas orci purus, blandit eu faucibus eu, lacinia id turpis.</span> | ||
|
||
``` | ||
|
||
|
||
============================= | ||
|
||
# Outputs | ||
|
||
## Output 1 | ||
|
||
----- | ||
Indent style: Tab | ||
Indent width: 2 | ||
Line ending: LF | ||
Line width: 80 | ||
Attribute Position: Auto | ||
Bracket same line: false | ||
Whitespace sensitivity: css | ||
Indent script and style: false | ||
----- | ||
|
||
```html | ||
<span | ||
>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed dapibus velit | ||
non justo tempus pretium. Praesent orci lorem, pellentesque sit amet | ||
ullamcorper sed, consectetur quis odio. In felis nulla, pellentesque a dolor | ||
eget, semper vestibulum nisi. Sed imperdiet dui a massa placerat ullamcorper. | ||
Praesent eleifend purus eget arcu faucibus, ac fringilla nulla aliquet. | ||
Aliquam id accumsan libero. Duis efficitur nisi quis massa mollis ultricies. | ||
Sed condimentum sit amet urna in cursus. Ut id tortor vestibulum, mollis enim | ||
sed, ornare ipsum. Class aptent taciti sociosqu ad litora torquent per conubia | ||
nostra, per inceptos himenaeos. Ut nec dapibus est. Maecenas orci purus, | ||
blandit eu faucibus eu, lacinia id turpis.</span | ||
> | ||
``` | ||
|
||
## Output 1 | ||
|
||
----- | ||
Indent style: Tab | ||
Indent width: 2 | ||
Line ending: LF | ||
Line width: 80 | ||
Attribute Position: Auto | ||
Bracket same line: false | ||
Whitespace sensitivity: ignore | ||
Indent script and style: false | ||
----- | ||
|
||
```html | ||
<span> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed dapibus velit non | ||
justo tempus pretium. Praesent orci lorem, pellentesque sit amet ullamcorper | ||
sed, consectetur quis odio. In felis nulla, pellentesque a dolor eget, semper | ||
vestibulum nisi. Sed imperdiet dui a massa placerat ullamcorper. Praesent | ||
eleifend purus eget arcu faucibus, ac fringilla nulla aliquet. Aliquam id | ||
accumsan libero. Duis efficitur nisi quis massa mollis ultricies. Sed | ||
condimentum sit amet urna in cursus. Ut id tortor vestibulum, mollis enim sed, | ||
ornare ipsum. Class aptent taciti sociosqu ad litora torquent per conubia | ||
nostra, per inceptos himenaeos. Ut nec dapibus est. Maecenas orci purus, | ||
blandit eu faucibus eu, lacinia id turpis. | ||
</span> | ||
``` |
8 changes: 8 additions & 0 deletions
8
crates/biome_html_formatter/tests/specs/html/elements/whitespace/ignore/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"$schema": "../../../../../../../packages/@biomejs/biome/configuration_schema.json", | ||
"html": { | ||
"formatter": { | ||
"whitespaceSensitivity": "ignore" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters