Skip to content

Commit

Permalink
fix the print_width value
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadSu1 committed Nov 4, 2024
1 parent 609b755 commit 967f135
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
13 changes: 13 additions & 0 deletions dprint_plugin/tests/integration/biome/class-attr.html.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---

source: dprint_plugin/tests/integration.rs

---

<div
class="aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass
aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass
aclass aclass aclass aclass aclass aclass aclass aclass"
>
div with lost of tailwindcss classes
</div>
10 changes: 10 additions & 0 deletions dprint_plugin/tests/integration/class-attr.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<div
class="aclass aclass aclass aclass aclass
aclass aclass aclass aclass aclass aclass aclass
aclass aclass aclass aclass aclass aclass aclass
aclass aclass aclass aclass aclass aclass aclass
aclass aclass aclass aclass aclass aclass aclass
aclass aclass aclass aclass aclass aclass"
>
div with lost of tailwindcss classes
</div>
13 changes: 13 additions & 0 deletions dprint_plugin/tests/integration/dprint_ts/class-attr.html.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---

source: dprint_plugin/tests/integration.rs

---

<div
class="aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass
aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass aclass
aclass aclass aclass aclass aclass aclass aclass aclass"
>
div with lost of tailwindcss classes
</div>
2 changes: 1 addition & 1 deletion markup_fmt/src/ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ where
.replace(|c: char| !c.is_ascii_whitespace(), " ")
+ code,
Hints {
print_width: u16::MAX as usize,
print_width: 120 as usize,
attr: true,
ext: "css",
},
Expand Down

0 comments on commit 967f135

Please sign in to comment.