Skip to content

Commit

Permalink
fix(fmt): don't use self-closing tags in HTML (#26754)
Browse files Browse the repository at this point in the history
Closes #26748
  • Loading branch information
bartlomieju authored and littledivy committed Nov 10, 2024
1 parent 9f6fb5e commit 6b74935
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/tools/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ fn get_resolved_markup_fmt_config(
max_attrs_per_line: None,
prefer_attrs_single_line: false,
html_normal_self_closing: None,
html_void_self_closing: Some(true),
html_void_self_closing: None,
component_self_closing: None,
svg_self_closing: None,
mathml_self_closing: None,
Expand Down
2 changes: 1 addition & 1 deletion tests/specs/fmt/html/well_formatted.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="container">content</div>
<div class="container">content<br></div>

<script>
let counter = 0;
Expand Down

0 comments on commit 6b74935

Please sign in to comment.